Dataflow Runtime API
4.0.1.0
|
Classes that implement this interface provide a generic mechanism to exchange data with a remoting peer. More...
#include <Imt.Base.Lib.Remoting/RemoteObjectIfc.h>
Public Types | |
enum | { UNDEFINED_ID = -1 } |
Public Member Functions | |
virtual | ~RemoteObjectIfc () |
Destructor. More... | |
virtual int32_t | getUniqueId () const =0 |
Gets the unique id of this remote object. More... | |
virtual bool | send ()=0 |
Sends this remote object. More... | |
virtual void | onReceive (::imt::base::core::serialization::Deserializer &deserializer)=0 |
Will be called when data has been received. More... | |
virtual void | attach (int32_t const uniqueId)=0 |
Attaches this remote object to remoting service. More... | |
virtual void | detach ()=0 |
Detaches this remote object from remoting service. More... | |
Public Member Functions inherited from imt::base::core::serialization::SerializableIfc | |
virtual | ~SerializableIfc () |
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... | |
Classes that implement this interface provide a generic mechanism to exchange data with a remoting peer.
Each RemoteObjectIfc implementation has a unique id, that is inserted in the byte stream sent to the remoting peer, that allows to identify the responsible remote object on the other side. The data send / received is handled in the serialize and deserialize methods.
|
inlinevirtual |
Destructor.
|
pure virtual |
Attaches this remote object to remoting service.
When attaching this object, a unique id must be provided.
uniqueId | A unique for this remote object |
Implemented in imt::base::lib::remoting::RemoteObjectAbs.
|
pure virtual |
Detaches this remote object from remoting service.
Implemented in imt::base::lib::remoting::RemoteObjectAbs.
|
pure virtual |
Gets the unique id of this remote object.
Implemented in imt::base::lib::remoting::RemoteObjectAbs.
|
pure virtual |
Will be called when data has been received.
deserializer | The deserializer containing the data |
Implemented in imt::base::lib::remoting::RemoteObjectAbs.
|
pure virtual |
Sends this remote object.
Implemented in imt::base::lib::remoting::RemoteObjectAbs.