![]() |
Dataflow Runtime API
2.7.4.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 (void) |
| Destructor. | |
| virtual int32_t | getUniqueId (void)=0 |
| Gets the unique id of this remote object. More... | |
| virtual bool | send (void)=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 (const int32_t uniqueId)=0 |
| Attaches this remote object to remoting service. More... | |
| virtual void | detach (void)=0 |
| Detaches this remote object from remoting service. | |
Public Member Functions inherited from imt::base::core::serialization::SerializableIfc | |
| virtual | ~SerializableIfc (void) |
| Destructor. | |
| 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... | |
Friends | |
| class | RemotingSendService |
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.
|
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 |
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.