Subversion Repositories heating

Rev

Rev 5 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5 Rev 8
Line 16... Line 16...
16
 * Author: Andreas Theofilu <andreas@theosys.at>
16
 * Author: Andreas Theofilu <andreas@theosys.at>
17
 */
17
 */
18
#ifndef __TEMPERATURE_H__
18
#ifndef __TEMPERATURE_H__
19
#define __TEMPERATURE_H__
19
#define __TEMPERATURE_H__
20
 
20
 
-
 
21
#define MAX_TEMPS		30
-
 
22
 
21
#include "helper.h"
23
#include "helper.h"
22
 
24
 
23
class temperature : public helper
25
class temperature : public helper
24
{
26
{
25
	public:
27
	public:
26
		temperature();
28
		temperature();
27
		~temperature();
29
		~temperature();
-
 
30
		void trun();
-
 
31
		void doStop() { stop = true; }
28
 
32
 
29
		double getTemp(int pos);
33
		double getTemp(int pos);
-
 
34
		double getOutside() { return outside; }
-
 
35
		void setOutside(int pos) { outPos = pos; }
30
 
36
 
31
	private:
37
	private:
32
		bool initialized;
38
		bool initialized;
33
		int fd_serial;
39
		int fd_serial;
34
		std::string buffer;
40
		std::string buffer;
-
 
41
		double outside;				// The outside temperature
-
 
42
		int outPos;					// The position of outside temperature
-
 
43
		bool stop;
-
 
44
		double allTemps[MAX_TEMPS];
35
};
45
};
36
 
46
 
37
#endif
47
#endif