CARMA C++
RemoteSensorRrd.h
Go to the documentation of this file.
1 // $Id: RemoteSensorRrd.h,v 1.3 2011/07/19 20:53:21 eml Exp $
2 
3 #ifndef SZA_UTIL_REMOTESENSORRRD_H
4 #define SZA_UTIL_REMOTESENSORRRD_H
5 
16 
17 namespace sza {
18  namespace util {
19 
20  class RemoteSensorRrd : public RemoteSensorCoProc {
21  public:
22 
26  RemoteSensorRrd(std::string host,
27  unsigned timeoutIntervalInSeconds=0);
28 
29  RemoteSensorRrd(std::string host,
30  SystemStatusSubsystemMutex* ms,
31  carma::monitor::MonitorPointBool& mpIsReachable,
34  unsigned timeoutIntervalInSeconds=0);
35 
36  RemoteSensorRrd(std::string host,
37  SystemStatusSubsystemMutex* ms,
38  carma::monitor::MonitorPointBool& mpHostIsReachable,
41  carma::monitor::MonitorPointEnum& mpPlaceStatus,
45  sza::util::Temperature& minTemp,
46  sza::util::Temperature& maxTemp,
47  unsigned timeoutIntervalInSeconds=0);
48 
52  virtual ~RemoteSensorRrd();
53 
54  Temperature setTemp_;
55 
56  void printTemps();
57 
58  protected:
59 
61 
62  // Compile the list of communication/responses needed for
63  // retrieving the device status from the remote server
64 
65  void compileGetDeviceStatusStateMachine();
66 
67  // Assemble the command string to be issued
68 
69  virtual std::string getCommandString();
70 
71  // Define what it means to parse the return message
72 
73  virtual void processDeviceStatus();
74 
75  void writeMonitorPoints(bool isReachable);
76 
77  }; // End class RemoteSensorRrd
78 
79  } // End namespace util
80 } // End namespace sza
81 
82 
83 
84 #endif // End #ifndef SZA_UTIL_REMOTESENSORRRD_H
Abstract base class for any enumerated constants, like state machines.
Tagged: Mon Jul 19 14:47:35 PDT 2004.
Absolute time value monitor point.