ADTF  3.14.3
cDiscreteClock

Discrete Clock implementation. More...

Inheritance diagram for cDiscreteClock:
[legend]

Public Member Functions

 cDiscreteClock ()
 CTOR make sure you call SetName()
 
 cDiscreteClock (const char *strName)
 CTOR. More...
 
adtf::base::flash::tNanoSeconds GetTimeNs () const override
 
tResult Reset (tTimeStamp tmNewTime)
 Resets the time to the new value and send the reset time events. More...
 
tResult SetTime (tTimeStamp tmNewTime)
 Sets the time to the new value and resets if value is less than time is set. More...
 
tResult Reset (adtf::base::flash::tNanoSeconds tmNewTime)
 Resets the time to the new value and send the reste time events. More...
 
tResult SetTime (adtf::base::flash::tNanoSeconds tmNewTime)
 Sets the time to the new value and resets if value is less than time is set. More...
 
- Public Member Functions inherited from cBaseClock
 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...
 

Private Attributes

adtf::base::flash::tNanoSeconds m_nCurrentTime
 

Additional Inherited Members

- Protected Member Functions inherited from cBaseClock
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!
 

Detailed Description

Discrete Clock implementation.

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

Definition at line 61 of file discrete_clock.h.

Constructor & Destructor Documentation

◆ cDiscreteClock()

cDiscreteClock ( const char *  strName)

CTOR.

Parameters
[in]strNameName of the clock

Member Function Documentation

◆ Reset() [1/2]

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

Copyright © Audi Electronics Venture GmbH. All rights reserved. (Generated on Thu Jun 9 2022 by doxygen 1.9.1)