CARMA C++
NetCmd.h
Go to the documentation of this file.
1 #ifndef SZA_UTIL_NETCMD_H
2 #define SZA_UTIL_NETCMD_H
3 
11 #include "carma/szaarrayutils/rtcnetcoms.h"
12 
13 #include "carma/szautil/AntNum.h"
14 #include "carma/szautil/Percent.h"
15 #include "carma/szautil/Pressure.h"
16 #include "carma/szautil/Temperature.h"
17 
18 namespace sza {
19  namespace util {
20 
21  class NetCmd {
22  public:
23 
27  NetCmd(sza::array::RtcNetCmd rtc, sza::array::NetCmdId opcode);
28  NetCmd();
29 
33  virtual ~NetCmd();
34 
35  sza::array::RtcNetCmd rtc_;
36 
37  sza::array::NetCmdId opcode_;
38 
39  // True if this is an initialization command
40 
41  bool init_;
42 
43  void packAtmosCmd(Temperature& airTemp, double humidity, double pressure,
44  AntNum::Id antennas = AntNum::ANTALL);
45 
46  void packAtmosCmd(Temperature& airTemp, Percent& humidity, Pressure& pressure,
47  AntNum::Id antennas = AntNum::ANTALL);
48 
49  }; // End class NetCmd
50 
51  } // End namespace util
52 } // End namespace sza
53 
54 
55 
56 #endif // End #ifndef SZA_UTIL_NETCMD_H
Tagged: Mon Aug 17 11:01:48 PDT 2009.
Tagged: Fri Nov 14 12:39:31 UTC 2003.
Id
Enumerate known receivers.
Definition: AntNum.h:35