EvolvingObjects
eoTimedMonitor Class Reference

Holds a collection of monitors and only fires them when a time limit has been reached. More...

#include <eoTimedMonitor.h>

Inheritance diagram for eoTimedMonitor:
eoMonitor eoF< eoMonitor & > eoFunctorBase

List of all members.

Public Member Functions

 eoTimedMonitor (unsigned seconds_)
 Constructor.
eoMonitoroperator() (void)
 The pure virtual function that needs to be implemented by the subclass.
void add (eoMonitor &mon)
virtual std::string className (void) const

Private Attributes

clock_t last_tick
unsigned seconds
std::vector< eoMonitor * > monitors

Detailed Description

Holds a collection of monitors and only fires them when a time limit has been reached.

Definition at line 42 of file eoTimedMonitor.h.


Constructor & Destructor Documentation

eoTimedMonitor::eoTimedMonitor ( unsigned  seconds_) [inline]

Constructor.

No negative time can be specified, use 0 if you want it to fire "always".

Parameters:
seconds_Specify time limit (s).

Definition at line 51 of file eoTimedMonitor.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Friends