coil::IClock Class Reference

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

#include <ClockManager.h>

Inheritance diagram for coil::IClock:
coil::AdjustedClock coil::LogicalClock coil::SystemClock

List of all members.

Public Member Functions

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

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 (  )  [inline, virtual]

Member Function Documentation

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

Getting time.

Returns:
Current time

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

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

Setting time.

Parameters:
clocktime Current time

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

Generated on Sat Apr 19 14:45:43 2014 for OpenRTM by  doxygen 1.6.3