My Project
 All Classes Files Functions Variables Enumerations Enumerator Friends Macros Pages
gcp::util::ModemPager Class Reference

#include <ModemPager.h>

Inheritance diagram for gcp::util::ModemPager:
gcp::util::SpawnableTask< ModemPagerMsg > gcp::util::GenericTask< ModemPagerMsg > gcp::util::RunnableTask gcp::util::Runnable

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 ()
 
- Public Member Functions inherited from gcp::util::SpawnableTask< ModemPagerMsg >
 SpawnableTask (bool spawn)
 
virtual ~SpawnableTask ()
 
- Public Member Functions inherited from gcp::util::GenericTask< ModemPagerMsg >
void sendRestartMsg ()
 
void sendStopMsg ()
 
void sendHeartBeatMsg ()
 
virtual void fwdTaskMsg (ModemPagerMsg *msg)
 
- Public Member Functions inherited from gcp::util::RunnableTask
 RunnableTask (bool spawnThread)
 
virtual ~RunnableTask ()
 
- Public Member Functions inherited from gcp::util::Runnable
 Runnable (bool spawnThread, RUN_FN(*runFn))
 
 Runnable (bool spawnThread, RUN_FN(*runFn), int priority)
 
virtual ~Runnable ()
 
void blockForever ()
 
void spawn ()
 

Additional Inherited Members

- Static Public Member Functions inherited from gcp::util::RunnableTask
static RUN_FN (runFn)
 
- Static Public Member Functions inherited from gcp::util::Runnable
static THREAD_START (startUp)
 
- Protected Member Functions inherited from gcp::util::SpawnableTask< ModemPagerMsg >
void run ()
 
- Protected Member Functions inherited from gcp::util::GenericTask< ModemPagerMsg >
 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)
 
ThreadgetThread (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 ()
 
- Protected Member Functions inherited from gcp::util::Runnable
virtual void broadcastReady ()
 
void spawn (void *arg)
 
- Protected Attributes inherited from gcp::util::GenericTask< ModemPagerMsg >
Threadthread_
 
std::vector< Thread * > threads_
 
PipeQ< ModemPagerMsgmsgq_
 
gcp::util::FdSet fdSet_
 
std::vector< Command * > commands_
 
struct timeval * timeOut_
 
TimeVal commandTimeOut_
 
- Protected Attributes inherited from gcp::util::Runnable
ThreadspawnedThread_
 
bool spawned_
 
RUN_FN * runFn_
 

Detailed Description

Class for communicating with Steffen's analog modem pager

Constructor & Destructor Documentation

ModemPager::ModemPager ( )

Constructor.

....................................................................... Constructor.

gcp::util::ModemPager::ModemPager ( FILE *  stdoutStream,
LOG_DISPATCHER *  stdoutDispatcher,
void *  stdoutContext,
FILE *  stderrStream,
LOG_DISPATCHER *  stderrDispatcher,
void *  stderrContext 
)

Constructor.

ModemPager::~ModemPager ( )
virtual

Destructor.

....................................................................... Destructor.


The documentation for this class was generated from the following files: