CARMA C++
Weather.h
1 #ifndef CARMA_ENVIRONMENT_WEATHER_H
2 #define CARMA_ENVIRONMENT_WEATHER_H
3 
4 /*
5  * Weather Reader (Weather Station + Dew Point Sensor)
6  *
7  * @author: Peter Teuben
8  * @author: Ira W. Snyder
9  * @version: $Id: Weather.h,v 1.26 2011/05/05 16:43:01 iws Exp $
10  *
11  * $CarmaCopyright$
12  */
13 
14 #include <carma/environment/WS.h>
15 #include <carma/environment/DPS.h>
17 #include <carma/util/Time.h>
18 #include <carma/monitor/WeatherSubsystem.h>
19 
20 #include <boost/shared_ptr.hpp>
21 
22 namespace carma {
23 namespace environment {
24 
25 class Weather
26 {
27 public:
37  Weather(const std::string &WSdev, const std::string &DPSdev,
38  bool useWS = true, bool useDPS = true,
39  bool reopen = false, bool emulate = true);
40 
41  void copyToMonitorSystem(carma::monitor::WeatherSubsystem &wss);
42  void startThreads();
43 
44 private:
45  void copyWeatherStation(carma::monitor::WeatherSubsystem &wss);
46  void copyDewPointSensor(carma::monitor::WeatherSubsystem &wss);
47 
48  const std::string WSdev_;
49  const std::string DPSdev_;
50  const bool useWS_;
51  const bool useDPS_;
52  const bool reopen_;
53  const bool emulate_;
54 
55  boost::shared_ptr<WS> ws_;
56  boost::shared_ptr<DPS> dps_;
57 };
58 
59 } // namespace environment
60 } // namespace carma
61 
62 /* vim: set ts=4 sts=4 sw=4 et: */
63 #endif // CARMA_ENVIRONMENT_WEATHER_H
Common time functions.
Constants and methods having to do with the earth&#39;s atmosphere (e.g.