CARMA C++
RemoteSensorHtml.h
Go to the documentation of this file.
1 // $Id: RemoteSensorHtml.h,v 1.3 2011/07/19 20:53:20 eml Exp $
2 
3 #ifndef SZA_UTIL_REMOTESENSORHTML_H
4 #define SZA_UTIL_REMOTESENSORHTML_H
5 
16 #include "carma/szautil/Temperature.h"
17 
18 #include <string>
19 
20 namespace sza {
21  namespace util {
22 
23  class RemoteSensorHtml : public RemoteSensor {
24  public:
25 
29  RemoteSensorHtml(std::string host,
30  unsigned timeoutIntervalInSeconds=0,
31  std::string query="main?PW=&PAGENAME=1");
32 
33 
34  RemoteSensorHtml(std::string host,
35  SystemStatusSubsystemMutex* ms,
36  carma::monitor::MonitorPointBool& mpIsReachable,
38  unsigned timeoutIntervalInSeconds=0,
39  std::string query="main?PW=&PAGENAME=1");
40 
41 
42  RemoteSensorHtml(std::string host,
43  SystemStatusSubsystemMutex* ms,
44  carma::monitor::MonitorPointBool& mpHostIsReachable,
47  carma::monitor::MonitorPointEnum& mpPlaceStatus,
50  sza::util::Temperature& minTemp,
51  sza::util::Temperature& maxTemp,
52  unsigned timeoutIntervalInSeconds=0,
53  std::string query="main?PW=&PAGENAME=1");
54 
55 
59  virtual ~RemoteSensorHtml();
60 
61  protected:
62 
63  void executeReadSensor();
64  void getUrl();
65  virtual void parseUrl();
66 
67  std::string query_;
68  std::string url_;
69 
70  }; // End class RemoteSensorHtml
71 
72  } // End namespace util
73 } // End namespace sza
74 
75 
76 
77 #endif // End #ifndef SZA_UTIL_REMOTESENSORHTML_H
Abstract base class for any enumerated constants, like state machines.
Tagged: Tue Nov 2 14:28:38 PDT 2010.
Absolute time value monitor point.