MAK Data Logger API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Attributes
MAKLogger::DtTimeProvider Class Reference

An abstract class which provides time advances used by the DtLgrClock. More...

+ Inheritance diagram for MAKLogger::DtTimeProvider:
+ Collaboration diagram for MAKLogger::DtTimeProvider:

Public Member Functions

 DtTimeProvider ()
 CTOR.
virtual ~DtTimeProvider ()
 DTOR.
virtual void tick ()=0
 Process time advance.
virtual void resetTick ()=0
 Reset the clock as if the last tick happened now (with the current time)
virtual DtTime currentTime () const =0
 Get the current time.
virtual DtTime timeAdvanced () const
 Get the time advanced as a result of the last tick.
virtual void setTimeAdvanced (DtTime timeValue)
 Set the time advanced as a result of the last tick.
virtual DtTime elapsedTime () const =0
 Get the elapsed time since the last tick.
virtual DtTime timeOffset () const =0
 Get the time offset.

Protected Attributes

DtTime myTimeAdvance

Detailed Description

An abstract class which provides time advances used by the DtLgrClock.

Constructor & Destructor Documentation

MAKLogger::DtTimeProvider::DtTimeProvider ( )

CTOR.

virtual MAKLogger::DtTimeProvider::~DtTimeProvider ( )
virtual

DTOR.

Member Function Documentation

virtual DtTime MAKLogger::DtTimeProvider::currentTime ( ) const
pure virtual

Get the current time.

Implemented in MAKLogger::DtWallClockTimeProvider.

virtual DtTime MAKLogger::DtTimeProvider::elapsedTime ( ) const
pure virtual

Get the elapsed time since the last tick.

Implemented in MAKLogger::DtWallClockTimeProvider.

virtual void MAKLogger::DtTimeProvider::resetTick ( )
pure virtual

Reset the clock as if the last tick happened now (with the current time)

Implemented in MAKLogger::DtWallClockTimeProvider.

virtual void MAKLogger::DtTimeProvider::setTimeAdvanced ( DtTime  timeValue)
virtual

Set the time advanced as a result of the last tick.

virtual void MAKLogger::DtTimeProvider::tick ( )
pure virtual

Process time advance.

Implemented in MAKLogger::DtWallClockTimeProvider.

virtual DtTime MAKLogger::DtTimeProvider::timeAdvanced ( ) const
virtual

Get the time advanced as a result of the last tick.

Warning
The return value will be constant between calls to tick.
virtual DtTime MAKLogger::DtTimeProvider::timeOffset ( ) const
pure virtual

Get the time offset.

Implemented in MAKLogger::DtWallClockTimeProvider.

Member Data Documentation

DtTime MAKLogger::DtTimeProvider::myTimeAdvance
protected

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

Document ID: Generated on Thu Jul 23 15:05:27 EDT 2020 from SVN revision 215371
Copyright © 2020 MAK Technologies. All Rights Reserved (www.mak.com)