#include <module.h>
|
| CPyTimer (CPyModule *pModule, unsigned int uInterval, unsigned int uCycles, const CString &sLabel, const CString &sDescription, PyObject *pyObj) |
|
virtual void | RunJob () |
| this is the method you should override More...
|
|
PyObject * | GetPyObj () |
|
PyObject * | GetNewPyObj () |
|
| ~CPyTimer () |
|
void | SetModule (CModule *p) |
|
void | SetDescription (const CString &s) |
|
CModule * | GetModule () const |
|
const CString & | GetDescription () const |
|
void | run (timeval &tNow) |
| This is used by the Job Manager, and not you directly. More...
|
|
void | StartMaxCycles (double dTimeSequence, uint32_t iMaxCycles) |
|
void | StartMaxCycles (const timeval &tTimeSequence, uint32_t iMaxCycles) |
|
void | Start (double dTimeSequence) |
| starts and runs infinity amount of times More...
|
|
void | Start (const timeval &TimeSequence) |
|
void | Stop () |
| call this to turn off your cron, it will be removed More...
|
|
void | Pause () |
| pauses excution of your code in RunJob More...
|
|
void | UnPause () |
| removes the pause on RunJon More...
|
|
timeval | GetInterval () const |
|
uint32_t | GetMaxCycles () const |
|
uint32_t | GetCyclesLeft () const |
|
bool | isValid () |
| returns true if cron is active More...
|
|
const CS_STRING & | GetName () const |
|
void | SetName (const CS_STRING &sName) |
|
timeval | GetNextRun () const |
| 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 More...
|
|
CPyTimer::CPyTimer |
( |
CPyModule * |
pModule, |
|
|
unsigned int |
uInterval, |
|
|
unsigned int |
uCycles, |
|
|
const CString & |
sLabel, |
|
|
const CString & |
sDescription, |
|
|
PyObject * |
pyObj |
|
) |
| |
|
inline |
uint32_t CCron::GetCyclesLeft |
( |
| ) |
const |
|
inherited |
const CString& CTimer::GetDescription |
( |
| ) |
const |
|
inherited |
timeval CCron::GetInterval |
( |
| ) |
const |
|
inherited |
uint32_t CCron::GetMaxCycles |
( |
| ) |
const |
|
inherited |
CModule* CTimer::GetModule |
( |
| ) |
const |
|
inherited |
PyObject* CPyTimer::GetNewPyObj |
( |
| ) |
|
|
inline |
timeval CCron::GetNextRun |
( |
| ) |
const |
|
inlineinherited |
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
PyObject* CPyTimer::GetPyObj |
( |
| ) |
|
|
inline |
returns true if cron is active
pauses excution of your code in RunJob
void CCron::run |
( |
timeval & |
tNow | ) |
|
|
inherited |
This is used by the Job Manager, and not you directly.
virtual void CPyTimer::RunJob |
( |
| ) |
|
|
virtual |
this is the method you should override
Reimplemented from CCron.
void CTimer::SetDescription |
( |
const CString & |
s | ) |
|
|
inherited |
void CTimer::SetModule |
( |
CModule * |
p | ) |
|
|
inherited |
void CCron::SetName |
( |
const CS_STRING & |
sName | ) |
|
|
inherited |
void CCron::Start |
( |
double |
dTimeSequence | ) |
|
|
inherited |
starts and runs infinity amount of times
void CCron::Start |
( |
const timeval & |
TimeSequence | ) |
|
|
inherited |
void CCron::StartMaxCycles |
( |
double |
dTimeSequence, |
|
|
uint32_t |
iMaxCycles |
|
) |
| |
|
inherited |
- 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 |
|
) |
| |
|
inherited |
call this to turn off your cron, it will be removed
removes the pause on RunJon
bool CCron::m_bRunOnNextCall |
|
protectedinherited |
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: