CARMA C++
BimaDewarRegulationImpl.h
Go to the documentation of this file.
1 
11 #ifndef CARMA_ANTENNA_BIMA_BIMADEWARREGULATION_H
12 #define CARMA_ANTENNA_BIMA_BIMADEWARREGULATION_H
13 
14 #include <stdio.h>
15 
16 #include <vector>
17 #include <string>
18 
19 // System includes
20 #include <sys/time.h>
21 #include <unistd.h>
22 
23 // CARMA includes
24 #include "carma/corba/corba.h"
25 #include "carma/util/Program.h"
26 #include "carma/util/Logger.h"
27 #include "carma/services/Table.h"
29 
30 #include "carma/util/ExceptionUtils.h"
31 
32 
33 
34 
35 namespace carma
36 {
37 
38  namespace corba {
39  class Server;
40  }
41 
42  namespace antenna
43  {
44  namespace bima
45  {
46  class BimaDewarRegulationImpl
47  {
48 
49  public:
50  BimaDewarRegulationImpl(
51  DewarRegulation &dereg,
52  bool emulate );
53 
54  ~BimaDewarRegulationImpl();
55 
56  static void thread( BimaDewarRegulationImpl &This );
57  void run();
58  bool isOk();
59 
60  // CORBA Service routines
61  void on();
62  void off();
63  void setPoint( CORBA::Float point );
64  void defrost();
65  void cancelDefrost();
66 
67  private:
68  DewarRegulation &_dereg;
69  log4cpp::Category &_log;
70  double _setPoint;
71  bool _emulate;
72 
73  carma::corba::Server & _server;
74 
75  }; // class BimaDewarRegulationImpl
76  } // namespace bima
77  } // namespace antenna
78 } // namespace carma
79 
80 #endif // CARMA_ANTENNA_BIMA_BIMADEWARREGULATION_H
Common table functions.
Class for creating, managing and serving requests to CORBA servants.
Definition: Server.h:22