My Project
|
#include <ModemPager.h>
Public Types | |
enum | State { STATE_NORM, STATE_ESC } |
enum | SpecialChars { ESC = 27, TERM = 109 } |
Public Member Functions | |
ModemPager () | |
ModemPager (FILE *stdoutStream, LOG_DISPATCHER(*stdoutDispatcher), void *stdoutContext, FILE *stderrStream, LOG_DISPATCHER(*stderrDispatcher), void *stderrContext) | |
virtual | ~ModemPager () |
void | start () |
void | stop () |
void | acknowledge () |
void | activate (std::string message) |
void | enable (bool enable) |
void | sendAlive () |
void | requestStatus () |
void | reset () |
![]() | |
SpawnableTask (bool spawn) | |
virtual | ~SpawnableTask () |
![]() | |
void | sendRestartMsg () |
void | sendStopMsg () |
void | sendHeartBeatMsg () |
virtual void | fwdTaskMsg (ModemPagerMsg *msg) |
![]() | |
RunnableTask (bool spawnThread) | |
virtual | ~RunnableTask () |
![]() | |
Runnable (bool spawnThread, RUN_FN(*runFn)) | |
Runnable (bool spawnThread, RUN_FN(*runFn), int priority) | |
virtual | ~Runnable () |
void | blockForever () |
void | spawn () |
Additional Inherited Members | |
![]() | |
static | RUN_FN (runFn) |
![]() | |
static | THREAD_START (startUp) |
![]() | |
void | run () |
![]() | |
GenericTask () | |
GenericTask (Thread *thread) | |
virtual | ~GenericTask () |
void | sendTaskMsg (ModemPagerMsg *msg) |
void | startThreads (void *arg) |
void | startThread (void *arg, unsigned order) |
unsigned | getMinStartOrder () |
bool | threadsNeedStarting () |
void | cancelThreads () |
void | cancelThread (unsigned order) |
unsigned | getMinCancelOrder () |
bool | threadsNeedCancelling () |
void | pingThreads (void *arg) |
void | raise (std::string name, int sigNo) |
Thread * | getThread (std::string name) |
bool | threadsAreRunning () |
void | shutdownConnection (int fd) |
virtual void | restart (void) |
virtual void | processTaskMsg (bool *stop) |
virtual void | respondToHeartBeat () |
virtual void | installTimer (ModemPagerMsg *msg) |
virtual void | installSignal (ModemPagerMsg *msg) |
virtual void | enableTimer (ModemPagerMsg *msg) |
virtual void | addHandler (ModemPagerMsg *msg) |
void | stepCommands () |
![]() | |
virtual void | broadcastReady () |
void | spawn (void *arg) |
![]() | |
Thread * | thread_ |
std::vector< Thread * > | threads_ |
PipeQ< ModemPagerMsg > | msgq_ |
gcp::util::FdSet | fdSet_ |
std::vector< Command * > | commands_ |
struct timeval * | timeOut_ |
TimeVal | commandTimeOut_ |
![]() | |
Thread * | spawnedThread_ |
bool | spawned_ |
RUN_FN * | runFn_ |
Class for communicating with Steffen's analog modem pager
ModemPager::ModemPager | ( | ) |
Constructor.
....................................................................... Constructor.
gcp::util::ModemPager::ModemPager | ( | FILE * | stdoutStream, |
LOG_DISPATCHER * | stdoutDispatcher, | ||
void * | stdoutContext, | ||
FILE * | stderrStream, | ||
LOG_DISPATCHER * | stderrDispatcher, | ||
void * | stderrContext | ||
) |
Constructor.
|
virtual |
Destructor.
....................................................................... Destructor.