The VisAO Camera
QTITempProbe.h
1 
2 
3 #ifndef __QTITempProbe_h__
4 #define __QTITempProbe_h__
5 
6 #include "libvisao.h"
7 
8 #include <fstream>
9 
10 #include <iostream>
11 #include <fstream>
12 #include <cstdlib>
13 
14 
15 
17 {
18  public:
19  QTITempProbe();
20  QTITempProbe(std::string dev_path);
21 
22  ~QTITempProbe();
23 
24  enum QTI_ERRORS{QTINO_ERROR, FIN_GOOD_ERROR, FOUT_GOOD_ERROR, DEV_NOT_OPEN_ERROR};
25 
26  protected:
27 
28  std::string devPath;
29 
30  bool devOpen;
31 
32  std::string serialNumber;
33 
34  std::ifstream fin;
35  std::ofstream fout;
36 
37  int errNum;
38 
39 
40  timer_t timerid;
41 
42  struct sigevent sev;
43  struct itimerspec its;
44 
45 
46  struct sigaction sa;
47 
48  public:
49 
50  void init();
51 
52  int setDevPath(std::string dev_path);
53 
54  int readSerialNumber();
55 
56  std::string getSerialNumber(){return serialNumber;}
57 
58  double getTemperature();
59 
60  int getErrNum();
61 };
62 
63 
64 #endif //__QTITempProbe_h__
int readSerialNumber()
VisAO software utilitites, declarations.