My Project
 All Classes Files Functions Variables Enumerations Enumerator Friends Macros Pages
NetCmd.h
Go to the documentation of this file.
1 #ifndef GCP_UTIL_NETCMD_H
2 #define GCP_UTIL_NETCMD_H
3 
11 #include "gcp/control/code/unix/libunix_src/specific/rtcnetcoms.h"
12 
13 #include "gcp/util/common/AntNum.h"
14 #include "gcp/util/common/Percent.h"
15 #include "gcp/util/common/Pressure.h"
16 #include "gcp/util/common/Temperature.h"
17 
18 namespace gcp {
19  namespace util {
20 
21  class NetCmd {
22  public:
23 
27  NetCmd(gcp::control::RtcNetCmd rtc, gcp::control::NetCmdId opcode);
28  NetCmd();
29 
33  virtual ~NetCmd();
34 
36 
37  gcp::control::NetCmdId opcode_;
38 
39  // True if this is an initialization command
40 
41  bool init_;
42 
43  void packAtmosCmd(Temperature& airTemp, Percent& humidity, Pressure& pressure,
44  AntNum::Id antennas = AntNum::ANTALL);
45 
46  }; // End class NetCmd
47 
48  } // End namespace util
49 } // End namespace gcp
50 
51 
52 
53 
54 #endif // End #ifndef GCP_UTIL_NETCMD_H
NetCmd()
Definition: NetCmd.cc:10
Definition: Temperature.h:17
virtual ~NetCmd()
Definition: NetCmd.cc:24
Definition: Pressure.h:22
Definition: Percent.h:20
Definition: NetCmd.h:21
Definition: rtcnetcoms.h:2462
Id
Definition: AntNum.h:37