summaryrefslogtreecommitdiff
path: root/examples/APG/Naming/Temperature_Grapher.h
blob: 610dac6a578273b0bbce715aa0d8d06429f4edc7 (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
30
// $Id$

#ifndef TEMPERATURE_GRAPHER_H
#define TEMPERATURE_GRAPHER_H

#include "Thermometer.h"
#include "Temperature_Grapher_Options.h"
#include "Naming_Context.h"

class Temperature_Grapher
  {
  public:
    Temperature_Grapher( Temperature_Grapher_Options & opt,
                         Naming_Context & naming_context )
        : opt_(opt), naming_context_(naming_context)
    {
    }

    void monitor();

  protected:
    void update_graph();

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

#endif /* TEMPERATURE_GRAPHER_H */