My Project
 All Classes Files Functions Variables Enumerations Enumerator Friends Macros Pages
GrabberControlMsg.h
Go to the documentation of this file.
1 #ifndef GCP_ASSEMBLER_GRABBERCONTROLMSG_H
2 #define GCP_ASSEMBLER_GRABBERCONTROLMSG_H
3 
11 #include "gcp/util/common/GenericTaskMsg.h"
12 
13 // Do not reshuffle these. GCC3.2.2 is easily confused
14 
15 #include "gcp/control/code/unix/libunix_src/specific/rtcnetcoms.h"
16 #include "gcp/control/code/unix/libunix_src/common/tcpip.h"
17 
18 namespace gcp {
19  namespace mediator {
20 
23  public:
24 
28  enum MsgType {
29 
30  // A net command to be sent directly to the grabber socket.
31 
32  NETCMD,
33  };
34 
39 
43  union {
44 
48  struct {
49  gcp::control::NetCmdId opcode;
51  } netCmd;
52 
53  } body;
54 
55  //------------------------------------------------------------
56  // Methods for packing messages to the GrabberControl
57  // task
58  //------------------------------------------------------------
59 
64  gcp::control::NetCmdId opcode) {
66  gcp::util::GenericTaskMsg::TASK_SPECIFIC;
67 
68  type = NETCMD;
69 
70  body.netCmd.cmd = *cmd;
71  body.netCmd.opcode = opcode;
72  }
73 
74  }; // End class GrabberControlMsg
75 
76  } // End namespace mediator
77 } // End namespace gcp
78 
79 
80 
81 #endif // End #ifndef GCP_ASSEMBLER_GRABBERCONTROLMSG_H
Definition: GenericTaskMsg.h:31
void packRtcNetCmdMsg(gcp::control::RtcNetCmd *cmd, gcp::control::NetCmdId opcode)
Definition: GrabberControlMsg.h:63
Definition: GrabberControlMsg.h:21
GenericMsgType genericMsgType_
Definition: GenericTaskMsg.h:50
union gcp::mediator::GrabberControlMsg::@190 body
Definition: rtcnetcoms.h:2462
struct gcp::mediator::GrabberControlMsg::@190::@191 netCmd
MsgType type
Definition: GrabberControlMsg.h:38
MsgType
Definition: GrabberControlMsg.h:28