//Editor-Info: -*- C++ -*-
//
//Subject: TOVE project / debug/event
//
//File: pushconsumer.cpp
//
//Version: $Revision: 1.1 $
//
//State: $State: Exp $
//
//Date: $Date: 1998/07/10 11:45:32 $
//
//Organisation:
//      Helsinki University of Technology
//      Laboratory of Telecommunications Software and Multimedia
//
//Author:
//      Timo Kokkonen
//
//Description:
//      See corresponding header file.
//
//Copyright:
//      Copyright 1999 Helsinki University of Technology
//      ALL RIGHTS RESERVED BETWEEN JANUARY 1996 AND JUNE 1999.
//
//Licence:
//
//
//History:
//
#include <OB/CORBA.h>

#include "pushconsumer_impl.h"

//
//Function: constructor
//
//Description:
//
//
PushConsumer_impl :: PushConsumer_impl(CosEventComm_PushSupplier* supplier)
    : supplier_(supplier)
{
    return;
}

//----------------------------------------------------------------------

//
//Function: destructor
//
//Description:
//
//
PushConsumer_impl :: ~PushConsumer_impl(void)
{
    supplier_ -> disconnect_push_supplier();

    return;
}


//----------------------------------------------------------------------

//
//Function: disconnect_push_consumer
//
//Description:
//
//
void PushConsumer_impl :: disconnect_push_consumer(void)
{
    return;
}


//----------------------------------------------------------------------

//
//Function: push
//
//Description:
//
//
void PushConsumer_impl :: push(const CORBA_Any& any)
{
    char* s;

    //
    // Display event data if Any is a string
    //
    if (any >>= s)
    {
	cout << s << endl;
    }

    return;
}
//----------------------------------------------------------------------
