My Project
 All Classes Files Functions Variables Enumerations Enumerator Friends Macros Pages
WxData.h
Go to the documentation of this file.
1 #ifndef GCP_UTIL_WXDATA_H
2 #define GCP_UTIL_WXDATA_H
3 
11 #include "gcp/util/common/NetStruct.h"
12 
13 namespace gcp {
14  namespace util {
15 
16  class WxData : public NetStruct {
17  public:
18 
22  WxData();
23 
27  virtual ~WxData();
28 
29  unsigned year_;
30  unsigned day_;
31  unsigned hour_;
32  unsigned min_;
33 
34  double airTemperatureC_;
35  double internalTemperatureC_;
36  double windDirectionDegrees_;
37 
38  double pressure_;
39  double relativeHumidity_;
40  double windSpeed_;
41  double batteryVoltage_;
42 
43  unsigned short power_;
44 
45  bool received_;
46 
47  // Write the contents of this object to an ostream
48 
49  friend std::ostream&
50  gcp::util::operator<<(std::ostream& os, WxData& data);
51 
52  std::string header();
53 
54  }; // End class WxData
55 
56 
57  } // End namespace util
58 } // End namespace gcp
59 
60 
61 #endif // End #ifndef GCP_UTIL_WXDATA_H
Definition: NetStruct.h:21
WxData()
Definition: WxData.cc:13
virtual ~WxData()
Definition: WxData.cc:54
Definition: WxData.h:16
std::string header()
Definition: WxData.cc:85