//Editor-Info: -*- C++ -*-
//
//Subject: TOVE project
//
//File: printobject.h
//
//Version: $Revision: 1.3 $
//
//State: $State: Exp $
//
//Date: $Date: 1998/10/09 11:41:47 $
//
//Organisation:
//      Helsinki University of Technology
//      Laboratory of Telecommunications Software and Multimedia
//
//Author:
//      Jussi Turunen
//
//Description:
//      class prinobject declaration.
//      Implements the otMessage IDL and prints the message
//      in send method.
//      NOTE! To be deprecated soon.
//
//Copyright:
//      Copyright 1999 Helsinki University of Technology
//      ALL RIGHTS RESERVED BETWEEN JANUARY 1996 AND JUNE 1999.
//
//Licence:
//
//
//History:


#ifndef __ADAPTER_PRINTMESSAGE_H__
#define __ADAPTER_PRINTMESSAGE_H__

#include <OB/CORBA.h>
#include <OB/Util.h>

#include <string>
#include "../adapter/msg_skel.h"

//     Implementation of the otMessage IDL interface. The implementation
//     is herited from the OmniBroker skeleton class.

class printObject : public otMessage_skel
{
    public:
        virtual ~printObject(void);
        virtual void send(const char* identifier_,
                          const otMessage::SerializedMessage& message_);
        virtual otMessage::SerializedMessage* 
	  sendTwoWay(const char* identifier_,
		     const ParameterList& parameters_);

        void saveIOR(CORBA_ORB_var orb_, string filename_);
        printObject();
	
	//otMessage_var getReceiver(void);
	
    protected:
    private:
	// otMessage_var _receiver;
};


#endif // __ADAPTER_PRINTMESSAGE_H__






