Dataflow Runtime API  3.1.1.0
Public Member Functions | Protected Member Functions | List of all members
imt::base::lib::remoting::RemoteObjectAbs Class Reference

Provides an abstract base class for all remote object implementations. More...

#include <Imt.Base.Lib.Remoting/RemoteObjectAbs.h>

Inheritance diagram for imt::base::lib::remoting::RemoteObjectAbs:
imt::base::lib::remoting::RemoteObjectIfc imt::base::core::serialization::SerializableIfc imt::base::lib::remoting::RemoteObjectSignalTemplate< PROTOCOL_ID > imt::base::lib::remoting::RemoteObjectTemplate< ProtocolType, PROTOCOL_ID >

Public Member Functions

 RemoteObjectAbs (const int32_t uniqueIdToAttach, RemotingSendServiceIfc *const pRemotingSendService=NULL, RemotingServiceIfc *const pRemotingReceiveService=NULL)
 Constructor. More...
 
virtual ~RemoteObjectAbs (void)
 Destructor. More...
 
virtual int32_t getUniqueId (void) const
 
virtual bool send (void)
 
virtual void onReceive (imt::base::core::serialization::Deserializer &deserializer)
 
virtual void attach (const int32_t uniqueId)
 
virtual void detach (void)
 
- Public Member Functions inherited from imt::base::lib::remoting::RemoteObjectIfc
virtual ~RemoteObjectIfc (void)
 Destructor. More...
 
- Public Member Functions inherited from imt::base::core::serialization::SerializableIfc
virtual ~SerializableIfc (void)
 Destructor. More...
 
virtual void deserialize (Deserializer &deserializer)=0
 Deserialize this object from the given deserializer. More...
 
virtual void serialize (Serializer &serializer) const =0
 Serialize this object into the given serializer. More...
 

Protected Member Functions

virtual uint32_t getMaxTransferSize (void) const
 Gets the maximum number of bytes that can be transfered by one transmission. More...
 

Additional Inherited Members

- Public Types inherited from imt::base::lib::remoting::RemoteObjectIfc
enum  { UNDEFINED_ID = -1 }
 

Detailed Description

Provides an abstract base class for all remote object implementations.

The user of this class only has to override the methods serialize and deserialize (

See also
SerializableIfc).

Constructor & Destructor Documentation

◆ RemoteObjectAbs()

imt::base::lib::remoting::RemoteObjectAbs::RemoteObjectAbs ( const int32_t  uniqueIdToAttach,
RemotingSendServiceIfc *const  pRemotingSendService = NULL,
RemotingServiceIfc *const  pRemotingReceiveService = NULL 
)
explicit

Constructor.

Attaches itself automatically at the remotingService if a valid Id is passed and the service is not NULL.

Parameters
uniqueIdToAttachUnique ID to attach to RemotingService
pRemotingSendServiceThe sending service to which this object will be attached
pRemotingReceiveServiceThe receiving service to which this object will be attached

◆ ~RemoteObjectAbs()

virtual imt::base::lib::remoting::RemoteObjectAbs::~RemoteObjectAbs ( void  )
virtual

Destructor.

Member Function Documentation

◆ attach()

virtual void imt::base::lib::remoting::RemoteObjectAbs::attach ( const int32_t  uniqueId)
virtual

◆ detach()

virtual void imt::base::lib::remoting::RemoteObjectAbs::detach ( void  )
virtual

◆ getMaxTransferSize()

virtual uint32_t imt::base::lib::remoting::RemoteObjectAbs::getMaxTransferSize ( void  ) const
protectedvirtual

Gets the maximum number of bytes that can be transfered by one transmission.

Returns
Returns the maximum number of bytes that can be transfered by one transmission

◆ getUniqueId()

virtual int32_t imt::base::lib::remoting::RemoteObjectAbs::getUniqueId ( void  ) const
virtual

◆ onReceive()

virtual void imt::base::lib::remoting::RemoteObjectAbs::onReceive ( imt::base::core::serialization::Deserializer deserializer)
virtual

◆ send()

virtual bool imt::base::lib::remoting::RemoteObjectAbs::send ( void  )
virtual

The documentation for this class was generated from the following file: