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

Public Types

enum  MsgType {
  CONTROL_CONNECTED, OPTCAM_CONNECTED, SCANNER_CONNECTED, PTEL_CONNECTED,
  DEICING_CONNECTED, SEND_HEARTBEAT, CONTROL_MSG, OPTCAM_MSG,
  SCANNER_MSG
}
 
- Public Types inherited from gcp::util::GenericMasterTaskMsg
enum  GenericMasterMsgType {
  ADD_HANDLER = GenericTaskMsg::LAST+1, ENABLE_TIMER, INSTALL_TIMER, INSTALL_SIGNAL,
  TASK_SPECIFIC
}
 
- Public Types inherited from gcp::util::GenericTaskMsg
enum  GenericMsgType {
  HEARTBEAT, STOP, RESTART, TASK_SPECIFIC,
  LAST
}
 

Public Member Functions

OptCamMsggetOptCamMsg ()
 
ScannerMsggetScannerMsg ()
 
ControlMsggetControlMsg ()
 
void packSendHeartBeatMsg ()
 
void packControlConnectedMsg (bool connected)
 
void packPtelControlConnectedMsg (bool connected)
 
void packDeicingControlConnectedMsg (bool connected)
 
void packScannerConnectedMsg (bool connected)
 
void packOptCamConnectedMsg (bool connected)
 
- Public Member Functions inherited from gcp::util::GenericMasterTaskMsg
void packInstallTimerMsg (std::string name, int sigNo, unsigned long initSec, unsigned long initNsec, unsigned long intervalSec, unsigned long intervalNsec, SIGNALTASK_HANDLER_FN(*handler))
 
void packInstallTimerMsg (std::string name, int sigNo, unsigned long intervalSec, unsigned long intervalNsec, SIGNALTASK_HANDLER_FN(*handler))
 
void packInstallSignalMsg (int sigNo, SIGNALTASK_HANDLER_FN(*handler))
 
void packEnableTimerMsg (std::string name, bool enable)
 
void packAddHandlerMsg (std::string name, SIGNALTASK_HANDLER_FN(*handler), bool add)
 

Public Attributes

MsgType type
 
union {
   struct {
      bool   connected
 
   }   controlConnected
 
   struct {
      bool   connected
 
   }   scannerConnected
 
   struct {
      bool   connected
 
   }   optcamConnected
 
   struct {
      bool   connected
 
   }   ptelConnected
 
   struct {
      bool   connected
 
   }   deicingConnected
 
   ControlMsg   controlMsg
 
   OptCamMsg   optcamMsg
 
   ScannerMsg   scannerMsg
 
body
 
- Public Attributes inherited from gcp::util::GenericMasterTaskMsg
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 {
      int   sigNo
 
      SIGNALTASK_HANDLER_FN *   handler
 
      void *   args
 
   }   installSignal
 
   struct {
      char   name [SIGNAL_NAME_LEN+1]
 
      bool   enable
 
   }   enableTimer
 
   struct {
      char   name [SIGNAL_NAME_LEN+1]
 
      SIGNALTASK_HANDLER_FN *   handler
 
      void *   args
 
      bool   add
 
   }   addHandler
 
genericMasterBody
 
- Public Attributes inherited from gcp::util::GenericTaskMsg
GenericMsgType genericMsgType_
 

Member Enumeration Documentation

Enumerate supported message types.

Member Function Documentation

void gcp::mediator::MasterMsg::packControlConnectedMsg ( bool  connected)
inline

Pack a control connection status message

void gcp::mediator::MasterMsg::packDeicingControlConnectedMsg ( bool  connected)
inline

Pack a deicing control connection status message

void gcp::mediator::MasterMsg::packOptCamConnectedMsg ( bool  connected)
inline

Pack a optcam connection status message

void gcp::mediator::MasterMsg::packPtelControlConnectedMsg ( bool  connected)
inline

Pack a ptel control connection status message

void gcp::mediator::MasterMsg::packScannerConnectedMsg ( bool  connected)
inline

Pack a scanner connection status message

void gcp::mediator::MasterMsg::packSendHeartBeatMsg ( )
inline

Pack a message to send a heartbeat.

Member Data Documentation

union { ... } gcp::mediator::MasterMsg::body

A union of message bodies.

ControlMsg gcp::mediator::MasterMsg::controlMsg

A message for the control thread.

OptCamMsg gcp::mediator::MasterMsg::optcamMsg

A message for the control thread.

ScannerMsg gcp::mediator::MasterMsg::scannerMsg

A message for the scanner thread.

MsgType gcp::mediator::MasterMsg::type

A type for this message


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