My Project
 All Classes Files Functions Variables Enumerations Enumerator Friends Macros Pages
gcp::util::SignalTaskMsg Class Reference
Inheritance diagram for gcp::util::SignalTaskMsg:
gcp::util::GenericTaskMsg

Public Types

enum  MsgType {
  ADD_SIGNAL_HANDLER, ADD_TIMER_HANDLER, SIG_ENABLE_TIMER, SIG_INSTALL_TIMER,
  SIG_INSTALL_SIGNAL
}
 
- Public Types inherited from gcp::util::GenericTaskMsg
enum  GenericMsgType {
  HEARTBEAT, STOP, RESTART, TASK_SPECIFIC,
  LAST
}
 

Public Member Functions

void packInstallTimerMsg (std::string name, int sigNo, unsigned long initSec, unsigned long initNsec, unsigned long intervalSec, unsigned long intervalNsec, SIGNALTASK_HANDLER_FN(*handler))
 
void packInstallSignalMsg (int sigNo, SIGNALTASK_HANDLER_FN(*handler), void *arg)
 
void packEnableTimerMsg (std::string name, bool enable)
 
void packAddHandlerMsg (std::string name, SIGNALTASK_HANDLER_FN(*handler), bool add)
 
void packAddHandlerMsg (int sigNo, SIGNALTASK_HANDLER_FN(*handler), bool add)
 

Public Attributes

MsgType type
 
union {
   struct {
      char   name [SIGNAL_NAME_LEN+1]
 
      int   sigNo
 
      unsigned long   initSec
 
      unsigned long   initNsec
 
      unsigned long   intervalSec
 
      unsigned long   intervalNsec
 
      SIGNALTASK_HANDLER_FN *   handler
 
   }   installTimer
 
   struct {
      char   name [SIGNAL_NAME_LEN+1]
 
      bool   enable
 
   }   enableTimer
 
   struct {
      int   sigNo
 
      SIGNALTASK_HANDLER_FN *   handler
 
      void *   arg
 
   }   installSignal
 
   struct {
      int   sigNo
 
      SIGNALTASK_HANDLER_FN *   handler
 
      bool   add
 
   }   addSignalHandler
 
   struct {
      char   name [SIGNAL_NAME_LEN+1]
 
      SIGNALTASK_HANDLER_FN *   handler
 
      bool   add
 
   }   addTimerHandler
 
body
 
- Public Attributes inherited from gcp::util::GenericTaskMsg
GenericMsgType genericMsgType_
 

Member Function Documentation

void gcp::util::SignalTaskMsg::packAddHandlerMsg ( std::string  name,
SIGNALTASK_HANDLER_FN *  handler,
bool  add 
)
inline

Pack a message to add a handler to a signal

void gcp::util::SignalTaskMsg::packAddHandlerMsg ( int  sigNo,
SIGNALTASK_HANDLER_FN *  handler,
bool  add 
)
inline

Pack a message to add a handler to a signal

void gcp::util::SignalTaskMsg::packEnableTimerMsg ( std::string  name,
bool  enable 
)
inline

Pack a message to enable/disable a timer.

void gcp::util::SignalTaskMsg::packInstallSignalMsg ( int  sigNo,
SIGNALTASK_HANDLER_FN *  handler,
void *  arg 
)
inline

Pack a message to install a signal.

void gcp::util::SignalTaskMsg::packInstallTimerMsg ( std::string  name,
int  sigNo,
unsigned long  initSec,
unsigned long  initNsec,
unsigned long  intervalSec,
unsigned long  intervalNsec,
SIGNALTASK_HANDLER_FN *  handler 
)
inline

Pack a message to install a timer.

Member Data Documentation

union { ... } gcp::util::SignalTaskMsg::body

A union of message bodies.


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