Ocean
Ocean::Tracking::Offline::TrackerEvent Class Referenceabstract

This class implements the base class for all tracker events. More...

Inheritance diagram for Ocean::Tracking::Offline::TrackerEvent:

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...
 

Detailed Description

This class implements the base class for all tracker events.

Constructor & Destructor Documentation

◆ TrackerEvent()

Ocean::Tracking::Offline::TrackerEvent::TrackerEvent ( const unsigned int  type,
const unsigned int  subtype,
const unsigned int  trackerId 
)
protected

Creates a new tracker event object.

Parameters
typeThe type of the event
subtypeThe subtype of the event
trackerIdId of the tracker that is sending this event

Member Function Documentation

◆ subtypeName()

virtual std::string Ocean::Tracking::Offline::TrackerEvent::subtypeName ( ) const
pure virtual

Returns the sub-type name of this event object.

Returns
Event sub-type name

Implemented in Ocean::Tracking::Offline::StateEvent, Ocean::Tracking::Offline::ProgressEvent, and Ocean::Tracking::Offline::ComponentEvent.

◆ trackerId()

unsigned int Ocean::Tracking::Offline::TrackerEvent::trackerId ( ) const
inline

Returns the unique id of the tracker that sent this event.

Returns
Unique tracker id

◆ typeName()

std::string Ocean::Tracking::Offline::TrackerEvent::typeName ( ) const

Returns the type name of this event.

Returns
Event type name

Field Documentation

◆ trackerId_

unsigned int Ocean::Tracking::Offline::TrackerEvent::trackerId_ = 0u
protected

The unique tracker id of the tracker that sent this event.


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