this is the main cron job class
More...
#include <Csocket.h>
this is the main cron job class
You should derive from this class, and override RunJob() with your code
- Author
- Jim Hull csock.nosp@m.et@j.nosp@m.imloc.nosp@m.o.co.nosp@m.m
| virtual CCron::~CCron |
( |
| ) |
|
|
inlinevirtual |
| uint32_t CCron::GetCyclesLeft |
( |
| ) |
const |
| timeval CCron::GetInterval |
( |
| ) |
const |
| uint32_t CCron::GetMaxCycles |
( |
| ) |
const |
| timeval CCron::GetNextRun |
( |
| ) |
const |
|
inline |
returns the timestamp of the next estimated run time. Note that it may not run at this EXACT time, but it will run at least at this time or after
| bool CCron::isValid |
( |
| ) |
const |
returns true if cron is active
pauses excution of your code in RunJob
| void CCron::run |
( |
timeval & |
tNow | ) |
|
This is used by the Job Manager, and not you directly.
| virtual void CCron::RunJob |
( |
| ) |
|
|
virtual |
this is the method you should override
Reimplemented in CFPTimer.
| void CCron::SetName |
( |
const CS_STRING & |
sName | ) |
|
| void CCron::Start |
( |
double |
dTimeSequence | ) |
|
starts and runs infinity amount of times
| void CCron::Start |
( |
const timeval & |
TimeSequence | ) |
|
| void CCron::StartMaxCycles |
( |
double |
dTimeSequence, |
|
|
uint32_t |
iMaxCycles |
|
) |
| |
- Parameters
-
| TimeSequence | how often to run in seconds |
| iMaxCycles | how many times to run, 0 makes it run forever |
| void CCron::StartMaxCycles |
( |
const timeval & |
tTimeSequence, |
|
|
uint32_t |
iMaxCycles |
|
) |
| |
call this to turn off your cron, it will be removed
removes the pause on RunJon
| bool CCron::m_bRunOnNextCall |
|
protected |
if set to true, RunJob() gets called on next invocation of run() despite the timeout
The documentation for this class was generated from the following file: