EvolvingObjects
|
Holds a collection of monitors and only fires them when a time limit has been reached. More...
#include <eoTimedMonitor.h>
Public Member Functions | |
eoTimedMonitor (unsigned seconds_) | |
Constructor. | |
eoMonitor & | operator() (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 |
Holds a collection of monitors and only fires them when a time limit has been reached.
Definition at line 42 of file eoTimedMonitor.h.
eoTimedMonitor::eoTimedMonitor | ( | unsigned | seconds_ | ) | [inline] |
Constructor.
No negative time can be specified, use 0 if you want it to fire "always".
seconds_ | Specify time limit (s). |
Definition at line 51 of file eoTimedMonitor.h.