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

#include <base_clock.h>

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

Inherited by adtf::system::ant::cDiscreteClock, and adtf::system::ant::cInterpolatingClock.

Public Member Functions

 cBaseClock (const char *strName)
 
tResult GetName (base::ant::IString &&strName) const override
 
- Public Member Functions inherited from adtf::ucom::catwo::object< services::ant::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
 
- Protected Member Functions inherited from adtf::ucom::ant::IObject
 ~IObject ()=default
 Protected destructor --> Only the final implementation can be destroyed!
 

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

Constructor & Destructor Documentation

◆ cBaseClock()

adtf::system::ant::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 adtf::system::ant::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()

tResult adtf::system::ant::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()

tResult adtf::system::ant::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

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