summaryrefslogtreecommitdiff
path: root/ACE/examples/APG/Naming/Temperature_Monitor.h
blob: 3b85b100fa13d6ede487c2dac00f6011bd52ae73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// $Id$

#ifndef TEMPERATURE_MONITOR_H
#define TEMPERATURE_MONITOR_H

#include "Thermometer.h"
#include "Temperature_Monitor_Options.h"
#include "Naming_Context.h"

class Temperature_Monitor
  {
  public:
    Temperature_Monitor( Temperature_Monitor_Options & opt,
                         Naming_Context & naming_context );

    void monitor();

  protected:
    void record_temperature(float temp);
    void record_failure();
    void reset_device(Name_Binding_Ptr & resetCount);

  private:
    Thermometer * thermometer_;
    Temperature_Monitor_Options & opt_;
    Naming_Context & naming_context_;
  };

#endif /* TEMPERATURE_MONITOR_H */