Merge pull request #2216 from jwillemsen/jwi-cxxversionchecks
[ACE_TAO.git] / ACE / examples / APG / Naming / Temperature_Monitor2.h
blob3db78c107e454d40f983a950d0691595eca08c2b
1 #ifndef TEMPERATURE_MONITOR_H
2 #define TEMPERATURE_MONITOR_H
4 #include "Thermometer.h"
5 #include "Temperature_Monitor_Options.h"
6 #include "Naming_Context.h"
8 class Temperature_Monitor2
10 public:
11 Temperature_Monitor2 (Temperature_Monitor_Options & opt,
12 Naming_Context & naming_context,
13 Naming_Context & shared_context)
14 : opt_(opt),
15 naming_context_(naming_context),
16 shared_context_(shared_context)
17 { }
19 void monitor ();
21 protected:
22 void record_temperature (float temp);
23 void record_history (float temp);
24 void record_failure ();
25 void reset_device (Name_Binding_Ptr & resetCount);
27 private:
28 Thermometer *thermometer_;
29 Temperature_Monitor_Options &opt_;
30 Naming_Context &naming_context_;
31 Naming_Context &shared_context_;
34 #endif /* TEMPERATURE_MONITOR_H */