![]() |
Imt.Base C++ API V4.1.1.0
|
Provides an abstract base class for all remote object implementations. More...
#include <Imt.Base.Lib.Remoting/inc/Imt.Base.Lib.Remoting/RemoteObjectAbs.h>
Public Member Functions | |
| RemoteObjectAbs (int32_t const uniqueIdToAttach, RemotingSendServiceIfc *const pRemotingSendService=nullptr, RemotingServiceIfc *const pRemotingReceiveService=nullptr) | |
| Constructor. | |
| int32_t | getUniqueId () const final |
| bool | send () final |
| void | onReceive (::imt::base::core::serialization::Deserializer &buffer) final |
| void | attach (int32_t const uniqueId) final |
| void | detach () final |
| virtual int32_t | getUniqueId () const =0 |
| Gets the unique id of this remote object. | |
| virtual bool | send ()=0 |
| Sends this remote object. | |
| virtual void | onReceive (::imt::base::core::serialization::Deserializer &buffer)=0 |
| Will be called when data has been received. | |
| virtual void | attach (int32_t const uniqueId)=0 |
| Attaches this remote object to remoting service. | |
| virtual void | detach ()=0 |
| Detaches this remote object from remoting service. | |
Public Member Functions inherited from imt::base::core::serialization::SerializableIfc | |
| virtual void | deserialize (Deserializer &buffer)=0 |
| Deserialize this object from the given deserialize. | |
| virtual void | serialize (Serializer &buffer) const =0 |
| Serialize this object into the given serializer. | |
Protected Member Functions | |
| ~RemoteObjectAbs () noexcept | |
| Destructor. | |
| virtual uint32_t | getMaxTransferSize () const |
| Gets the maximum number of bytes that can be transfered by one transmission. | |
Protected Member Functions inherited from imt::base::lib::remoting::RemoteObjectIfc | |
| RemoteObjectIfc () noexcept=default | |
| RemoteObjectIfc (RemoteObjectIfc const &) noexcept=default | |
| RemoteObjectIfc (RemoteObjectIfc &&) noexcept=default | |
| ~RemoteObjectIfc () noexcept=default | |
| RemoteObjectIfc & | operator= (RemoteObjectIfc const &) &noexcept=default |
| RemoteObjectIfc & | operator= (RemoteObjectIfc &&) &noexcept=default |
Protected Member Functions inherited from imt::base::core::serialization::SerializableIfc | |
| SerializableIfc () noexcept=default | |
| SerializableIfc (SerializableIfc const &) noexcept=default | |
| SerializableIfc (SerializableIfc &&) noexcept=default | |
| ~SerializableIfc () noexcept=default | |
| SerializableIfc & | operator= (SerializableIfc const &) &noexcept=default |
| SerializableIfc & | operator= (SerializableIfc &&) &noexcept=default |
Additional Inherited Members | |
Static Public Attributes inherited from imt::base::lib::remoting::RemoteObjectIfc | |
| static constexpr int32_t | UNDEFINED_ID {-1} |
| ID to indicate no or an invalid remote object. | |
Provides an abstract base class for all remote object implementations.
The user of this class only has to override the methods serialize and deserialize (
Definition at line 26 of file RemoteObjectAbs.h.
|
explicit |
Constructor.
Attaches itself automatically at the remotingService if a valid Id is passed and the service is not nullptr.
| uniqueIdToAttach | Unique ID to attach to RemotingService |
| pRemotingSendService | The sending service to which this object will be attached |
| pRemotingReceiveService | The receiving service to which this object will be attached |
|
protectednoexcept |
Destructor.
Detaches the object from remotingService.
|
finalvirtual |
Implements imt::base::lib::remoting::RemoteObjectIfc.
|
finalvirtual |
Implements imt::base::lib::remoting::RemoteObjectIfc.
|
protectedvirtual |
Gets the maximum number of bytes that can be transfered by one transmission.
|
finalvirtual |
Implements imt::base::lib::remoting::RemoteObjectIfc.
|
finalvirtual |
Implements imt::base::lib::remoting::RemoteObjectIfc.
|
finalvirtual |
Implements imt::base::lib::remoting::RemoteObjectIfc.