ADTF  3.18.2
cBaseClock
Inheritance diagram for cBaseClock:
[legend]

Public Member Functions

 cBaseClock ()
 CTOR make sure you call SetName()
 
 cBaseClock (const char *strName)
 CTOR to set the name of the clock. More...
 
void SetName (const char *strName)
 Sets the name of the clock. More...
 
tResult GetName (base::ant::IString &&strName) const override
 
tTimeStamp GetTime () const override
 
adtf::base::flash::tNanoSeconds GetTimeNs () const override
 
- Public Member Functions inherited from object< services::ant::IReferenceClock::IClock, services::flash::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...
 
tResult SendResetBeginEvent (base::flash::tNanoSeconds tmOldTime, base::flash::tNanoSeconds tmNewTime) const
 Sends the Reset begin event. More...
 
tResult SendResetEndEvent (base::flash::tNanoSeconds tmOldTime, base::flash::tNanoSeconds tmNewTime) const
 Sends the Reset end event. More...
 
tResult SendUpdateEvent (base::flash::tNanoSeconds tmOldTime, base::flash::tNanoSeconds 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 Member Functions

tResult SendEvent (adtf::services::flash::IReferenceClock::tReferenceClockEventId eEventId, base::flash::tNanoSeconds tmOldTime, base::flash::tNanoSeconds tmNewTime) const
 
tResult SendEvent (adtf::services::ant::IReferenceClock::tReferenceClockEventId eEventId, tTimeStamp tmOldTime, tTimeStamp tmNewTime) const
 

Private Attributes

std::string m_strName
 

Detailed Description

Definition at line 68 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() [1/2]

tResult SendResetBeginEvent ( base::flash::tNanoSeconds  tmOldTime,
base::flash::tNanoSeconds  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

◆ SendResetBeginEvent() [2/2]

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() [1/2]

tResult SendResetEndEvent ( base::flash::tNanoSeconds  tmOldTime,
base::flash::tNanoSeconds  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

◆ SendResetEndEvent() [2/2]

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() [1/2]

tResult SendUpdateEvent ( base::flash::tNanoSeconds  tmOldTime,
base::flash::tNanoSeconds  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

◆ SendUpdateEvent() [2/2]

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

◆ SetName()

void SetName ( const char *  strName)

Sets the name of the clock.

Parameters
[in]strNameThe name of the clock.