Subversion Repositories heating

Rev

Rev 5 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
5 andreas 1
/*
2
 * Copyright (C) 2015 by Andreas Theofilu. All rights reserved!
3
 *
4
 * All rights reserved. No warranty, explicit or implicit, provided.
5
 *
6
 * NOTICE:  All information contained herein is, and remains
7
 * the property of Andreas Theofilu and his suppliers, if any.
8
 * The intellectual and technical concepts contained
9
 * herein are proprietary to Andreas Theofilu and its suppliers and
10
 * may be covered by European and Foreign Patents, patents in process,
11
 * and are protected by trade secret or copyright law.
12
 * Dissemination of this information or reproduction of this material
13
 * is strictly forbidden unless prior written permission is obtained
14
 * from Andreas Theofilu.
15
 * 
16
 * Author: Andreas Theofilu <andreas@theosys.at>
17
 */
18
#ifndef __TEMPERATURE_H__
19
#define __TEMPERATURE_H__
20
 
8 andreas 21
#define MAX_TEMPS		30
22
 
5 andreas 23
#include "helper.h"
24
 
25
class temperature : public helper
26
{
27
	public:
28
		temperature();
29
		~temperature();
8 andreas 30
		void trun();
31
		void doStop() { stop = true; }
5 andreas 32
 
33
		double getTemp(int pos);
8 andreas 34
		double getOutside() { return outside; }
35
		void setOutside(int pos) { outPos = pos; }
5 andreas 36
 
37
	private:
38
		bool initialized;
39
		int fd_serial;
40
		std::string buffer;
8 andreas 41
		double outside;				// The outside temperature
42
		int outPos;					// The position of outside temperature
43
		bool stop;
44
		double allTemps[MAX_TEMPS];
5 andreas 45
};
46
 
47
#endif