fawkes::TimeSource Class Reference

TimeSource interface. More...

#include <timesource.h>

Inheritance diagram for fawkes::TimeSource:

[legend]
List of all members.

Public Member Functions

virtual ~TimeSource ()
 Destructor.
virtual void get_time (timeval *tv) const =0
 Get the current time.
virtual timeval conv_to_realtime (const timeval *tv) const =0
 Convert a time given w.r.t.

Detailed Description

TimeSource interface.

This interfaces describes a way to interact with time sources that can be given to a Clock (for instance for simulation environments).

Author:
Daniel Beck

Definition at line 36 of file timesource.h.


Constructor & Destructor Documentation

virtual fawkes::TimeSource::~TimeSource (  )  [inline, virtual]

Destructor.

Definition at line 40 of file timesource.h.


Member Function Documentation

virtual timeval fawkes::TimeSource::conv_to_realtime ( const timeval *  tv  )  const [pure virtual]

Convert a time given w.r.t.

this time sources into system time.

Parameters:
tv the time to convert
Returns:
the converted time

Implemented in fawkes::SimulatorTimeSource.

Referenced by fawkes::Clock::ext_to_realtime().

virtual void fawkes::TimeSource::get_time ( timeval *  tv  )  const [pure virtual]

Get the current time.

Parameters:
tv the current time is written to this timeval

Implemented in fawkes::SimulatorTimeSource.

Referenced by fawkes::Clock::get_time().


The documentation for this class was generated from the following file:
Generated on Tue Feb 22 13:32:55 2011 for Fawkes API by  doxygen 1.4.7