ADTF
Loading...
Searching...
No Matches
adtf::system::cDiscreteClock Class Reference

More...

#include <discrete_clock.h>

Inherits adtf::system::flash::cBaseClock.

Public Member Functions

 cDiscreteClock ()
 
 cDiscreteClock (const char *strName)
 
adtf::base::flash::tNanoSeconds GetTimeNs () const override
 
tResult Reset (tTimeStamp tmNewTime)
 
tResult Reset (adtf::base::flash::tNanoSeconds tmNewTime)
 
tResult SetTime (tTimeStamp tmNewTime)
 
tResult SetTime (adtf::base::flash::tNanoSeconds tmNewTime)
 
- Public Member Functions inherited from adtf::system::flash::cBaseClock
 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")
 

Additional Inherited Members

- Protected Member Functions inherited from adtf::system::flash::cBaseClock
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!
 

Detailed Description

Discrete Clock implementation.

Time does not advance between calls to SetTime() and Reset().

Constructor & Destructor Documentation

◆ cDiscreteClock() [1/2]

adtf::system::flash::cDiscreteClock::cDiscreteClock ( )

CTOR make sure you call SetName()

◆ cDiscreteClock() [2/2]

adtf::system::flash::cDiscreteClock::cDiscreteClock ( const char * strName)

CTOR

Parameters
[in]strNameName of the clock

Member Function Documentation

◆ Reset() [1/2]

tResult adtf::system::flash::cDiscreteClock::Reset ( adtf::base::flash::tNanoSeconds tmNewTime)

Resets the time to the new value and send the reste time events.

Parameters
[in]tmNewTimethe new time
Returns
Standard Result Code
ERR_NOERROR time set successfully

◆ Reset() [2/2]

tResult adtf::system::flash::cDiscreteClock::Reset ( tTimeStamp tmNewTime)

Resets the time to the new value and send the reset time events.

Parameters
[in]tmNewTimethe new time
Returns
Standard Result Code
ERR_NOERROR time set successfully

◆ SetTime() [1/2]

tResult adtf::system::flash::cDiscreteClock::SetTime ( adtf::base::flash::tNanoSeconds tmNewTime)

Sets the time to the new value and resets if value is less than time is set.

Parameters
[in]tmNewTimethe new time
Returns
Standard Result Code
ERR_NOERROR time set successfully

◆ SetTime() [2/2]

tResult adtf::system::flash::cDiscreteClock::SetTime ( tTimeStamp tmNewTime)

Sets the time to the new value and resets if value is less than time is set.

Parameters
[in]tmNewTimethe new time
Returns
Standard Result Code
ERR_NOERROR time set successfully

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