Fawkes API Fawkes Development Version

fawkes::ClockAspect Class Reference

Thread aspect that allows to obtain the current time from the clock. More...

#include <>>

Inheritance diagram for fawkes::ClockAspect:

List of all members.

Public Member Functions

virtual ~ClockAspect ()
 Virtual empty destructor.
void init_ClockAspect (Clock *clock)
 Set the clock.

Protected Attributes

Clockclock
 By means of this member access to the clock is given.

Detailed Description

Thread aspect that allows to obtain the current time from the clock.

Threads that need to deal with the current time should have this aspect and not obtain the time by means of gettimeofday!

Author:
Daniel Beck

Definition at line 31 of file clock.h.


Constructor & Destructor Documentation

fawkes::ClockAspect::~ClockAspect ( ) [virtual]

Virtual empty destructor.

Definition at line 43 of file clock.cpp.


Member Function Documentation

void fawkes::ClockAspect::init_ClockAspect ( Clock clock)

Set the clock.

It is guaranteed that this is called for a clock thread before Thread::start() is called (when running regularly inside Fawkes).

Parameters:
clockClock instance to use.

Definition at line 54 of file clock.cpp.

References clock.

Referenced by fawkes::AspectIniFin::init().


Member Data Documentation


The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends