ADTF
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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.
 
void SetName (const char *strName)
 Sets the name of the clock.
 
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.
 
tResult GetInterface (const char *i_strIID, const void *&o_pInterface) const override
 Provides const correct interface querying.
 
void Destroy () const override
 Switch from non-virtual destructor to virtual destructor.
 
tResult GetInterface (const char *i_strIID, void *&o_pInterface) override
 Query interfaces on an object.
 
tResult GetInterface (const char *i_strIID, const void *&o_pInterface) const override
 Provides const correct interface querying.
 
void Destroy () const override
 Switch from non-virtual destructor to virtual destructor.
 
tResult GetInterface (const char *i_strIID, void *&o_pInterface) override
 Query interfaces on an object.
 
tResult GetInterface (const char *i_strIID, const void *&o_pInterface) const override
 Provides const correct interface querying.
 
void Destroy () const override
 Switch from non-virtual destructor to virtual destructor.
 
- Public Member Functions inherited from IObject
 ADTF_IID (IObject, "object.ant.ucom.adtf.iid")
 Marks the IObject to be castable with the ucom_cast()
 

Protected Member Functions

tResult SendResetBeginEvent (tTimeStamp tmOldTime, tTimeStamp tmNewTime) const
 Sends the Reset begin event.
 
tResult SendResetEndEvent (tTimeStamp tmOldTime, tTimeStamp tmNewTime) const
 Sends the Reset end event.
 
tResult SendUpdateEvent (tTimeStamp tmOldTime, tTimeStamp tmNewTime) const
 Sends the time update event.
 
tResult SendResetBeginEvent (base::flash::tNanoSeconds tmOldTime, base::flash::tNanoSeconds tmNewTime) const
 Sends the Reset begin event.
 
tResult SendResetEndEvent (base::flash::tNanoSeconds tmOldTime, base::flash::tNanoSeconds tmNewTime) const
 Sends the Reset end event.
 
tResult SendUpdateEvent (base::flash::tNanoSeconds tmOldTime, base::flash::tNanoSeconds tmNewTime) const
 Sends the time update event.
 
- Protected Member Functions inherited from IObject
 ~IObject ()=default
 Protected destructor --> Only the final implementation can be destroyed!
 

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

◆ SetName()

void SetName ( const char * strName)

Sets the name of the clock.

Parameters
[in]strNameThe name of the clock.

Member Data Documentation

◆ m_strName

std::string m_strName
private

Definition at line 152 of file base_clock.h.