Ocean
|
This class implements the base class for all tracker events. More...
Public Member Functions | |
unsigned int | trackerId () const |
Returns the unique id of the tracker that sent this event. More... | |
std::string | typeName () const |
Returns the type name of this event. More... | |
virtual std::string | subtypeName () const =0 |
Returns the sub-type name of this event object. More... | |
Public Member Functions inherited from Ocean::Event | |
virtual | ~Event () |
Destructs an event object. More... | |
unsigned int | type () const |
Returns the type of this event. More... | |
unsigned int | subtype () const |
Returns the sub-type of this event. More... | |
template<typename T > | |
const T & | cast () const |
Casts this event to an event with specified type. More... | |
template<typename T > | |
T & | cast () |
Casts this event to an event with specified type. More... | |
Protected Member Functions | |
TrackerEvent (const unsigned int type, const unsigned int subtype, const unsigned int trackerId) | |
Creates a new tracker event object. More... | |
Protected Member Functions inherited from Ocean::Event | |
Event (const unsigned int type, const unsigned int subtype) | |
Creates a new event object. More... | |
Protected Attributes | |
unsigned int | trackerId_ = 0u |
The unique tracker id of the tracker that sent this event. More... | |
Protected Attributes inherited from Ocean::Event | |
unsigned int | eventType |
The type of the event. More... | |
unsigned int | eventSubtype |
The sub-type of the event. More... | |
This class implements the base class for all tracker events.
|
protected |
Creates a new tracker event object.
type | The type of the event |
subtype | The subtype of the event |
trackerId | Id of the tracker that is sending this event |
|
pure virtual |
Returns the sub-type name of this event object.
Implemented in Ocean::Tracking::Offline::StateEvent, Ocean::Tracking::Offline::ProgressEvent, and Ocean::Tracking::Offline::ComponentEvent.
|
inline |
Returns the unique id of the tracker that sent this event.
std::string Ocean::Tracking::Offline::TrackerEvent::typeName | ( | ) | const |
Returns the type name of this event.
|
protected |
The unique tracker id of the tracker that sent this event.