ADTF
Loading...
Searching...
No Matches
adtf::system::flash::cBaseClock Class Reference

Inherits adtf::ucom::catwo::object< services::ant::IReferenceClock::IClock, services::flash::IReferenceClock::IClock, ucom::cEventSource >.

Inherited by adtf::system::flash::cDiscreteClock, adtf::system::hollow::cInterpolatingClock, and adtf::system::lucky::cInterpolatingClock.

Public Member Functions

 cBaseClock ()
 
 cBaseClock (const char *strName)
 
void SetName (const char *strName)
 
tResult GetName (base::ant::IString &&strName) const override
 
tTimeStamp GetTime () const override
 
adtf::base::flash::tNanoSeconds GetTimeNs () const override
 
- Public Member Functions inherited from adtf::ucom::catwo::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 adtf::ucom::ant::IObject
 ADTF_IID (IObject, "object.ant.ucom.adtf.iid")
 

Protected Member Functions

tResult SendResetBeginEvent (tTimeStamp tmOldTime, tTimeStamp tmNewTime) const
 
tResult SendResetEndEvent (tTimeStamp tmOldTime, tTimeStamp tmNewTime) const
 
tResult SendUpdateEvent (tTimeStamp tmOldTime, tTimeStamp tmNewTime) const
 
tResult SendResetBeginEvent (base::flash::tNanoSeconds tmOldTime, base::flash::tNanoSeconds tmNewTime) const
 
tResult SendResetEndEvent (base::flash::tNanoSeconds tmOldTime, base::flash::tNanoSeconds tmNewTime) const
 
tResult SendUpdateEvent (base::flash::tNanoSeconds tmOldTime, base::flash::tNanoSeconds tmNewTime) const
 
- Protected Member Functions inherited from adtf::ucom::ant::IObject
 ~IObject ()=default
 Protected destructor --> Only the final implementation can be destroyed!
 

Constructor & Destructor Documentation

◆ cBaseClock() [1/2]

adtf::system::flash::cBaseClock::cBaseClock ( )

CTOR make sure you call SetName()

◆ cBaseClock() [2/2]

adtf::system::flash::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 adtf::system::flash::cBaseClock::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 adtf::system::flash::cBaseClock::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 adtf::system::flash::cBaseClock::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 adtf::system::flash::cBaseClock::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 adtf::system::flash::cBaseClock::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 adtf::system::flash::cBaseClock::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 adtf::system::flash::cBaseClock::SetName ( const char * strName)

Sets the name of the clock.

Parameters
[in]strNameThe name of the clock.

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