ADTF  3.18.2
cBaseClock

Basic Clock implementation for adtf::services::ant::IReferenceClock::IClock. More...

Inheritance diagram for cBaseClock:
[legend]

Public Member Functions

 cBaseClock (const char *strName)
 CTOR to set the name of the clock. More...
 
tResult GetName (base::ant::IString &&strName) const override
 
- Public Member Functions inherited from object< services::ant::IReferenceClock::IClock, ucom::cEventSource >
tResult GetInterface (const char *i_strIID, void *&o_pInterface) override
 Query interfaces on an object. More...
 
tResult GetInterface (const char *i_strIID, const void *&o_pInterface) const override
 Provides const correct interface querying. More...
 
void Destroy () const override
 Destruct and deallocate instantiations of type IObject. More...
 
- Public Member Functions inherited from IObject
 ADTF_IID (IObject, "object.ant.ucom.adtf.iid")
 Marks the IObject to be castable with the ucom_cast() More...
 

Protected Member Functions

tResult SendResetBeginEvent (tTimeStamp tmOldTime, tTimeStamp tmNewTime) const
 Sends the Reset begin event. More...
 
tResult SendResetEndEvent (tTimeStamp tmOldTime, tTimeStamp tmNewTime) const
 Sends the Reset end event. More...
 
tResult SendUpdateEvent (tTimeStamp tmOldTime, tTimeStamp tmNewTime) const
 Sends the time update event. More...
 
- Protected Member Functions inherited from IObject
 ~IObject ()=default
 Protected destructor --> Use implemented Destroy() instead of delete!
 

Private Attributes

adtf_util::cString m_strName
 

Detailed Description

Basic Clock implementation for adtf::services::ant::IReferenceClock::IClock.

This implementation will help to send the necessary reset events to the registered event sinks.

See also
adtf::services::ant::IReferenceClock::tReferenceClockEvent

Definition at line 23 of file base_clock.h.

Constructor & Destructor Documentation

◆ cBaseClock()

cBaseClock ( const char *  strName)

CTOR to set the name of the clock.

Parameters
[in]strNameThe name of the clock

Member Function Documentation

◆ SendResetBeginEvent()

tResult SendResetBeginEvent ( tTimeStamp  tmOldTime,
tTimeStamp  tmNewTime 
) const
protected

Sends the Reset begin event.

Parameters
[in]tmOldTimeOld time before reset.
[in]tmNewTimeNew time after reset.
See also
adtf::services::ant::IReferenceClock::tReferenceClockEventId

◆ SendResetEndEvent()

tResult SendResetEndEvent ( tTimeStamp  tmOldTime,
tTimeStamp  tmNewTime 
) const
protected

Sends the Reset end event.

Parameters
[in]tmOldTimeOld time before reset.
[in]tmNewTimeNew time after reset.
See also
adtf::services::ant::IReferenceClock::tReferenceClockEventId

◆ SendUpdateEvent()

tResult SendUpdateEvent ( tTimeStamp  tmOldTime,
tTimeStamp  tmNewTime 
) const
protected

Sends the time update event.

Parameters
[in]tmOldTimeOld time before reset.
[in]tmNewTimeNew time after reset.
See also
adtf::services::ant::IReferenceClock::tReferenceClockEventId