OpenRTM-aist  1.2.1
Public Member Functions | List of all members
coil::IClock Class Referenceabstract

An interface to set and get time. More...

#include <ClockManager.h>

Inheritance diagram for coil::IClock:
Inheritance graph
[legend]

Public Member Functions

virtual ~IClock ()
 
virtual coil::TimeValue gettime () const =0
 Getting time. More...
 
virtual bool settime (coil::TimeValue clocktime)=0
 Setting time. More...
 

Detailed Description

An interface to set and get time.

This class is a interface for clock objects managed by ClockManager. ClockManager manages one or more clocks, and it returns appropriate clock objects according to demands. The clock object might be clock which just returns system time, or a clock which returns individual logical time.

Constructor & Destructor Documentation

virtual coil::IClock::~IClock ( )
inlinevirtual

References gettime(), and settime().

Member Function Documentation

virtual coil::TimeValue coil::IClock::gettime ( ) const
pure virtual

Getting time.

Returns
Current time

Implemented in coil::AdjustedClock, coil::LogicalClock, and coil::SystemClock.

Referenced by ~IClock().

virtual bool coil::IClock::settime ( coil::TimeValue  clocktime)
pure virtual

Setting time.

Parameters
clocktimeCurrent time

Implemented in coil::AdjustedClock, coil::LogicalClock, and coil::SystemClock.

Referenced by ~IClock().


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