summaryrefslogtreecommitdiffstats
path: root/Bachelor/Prog2/Prakt2/SmartHouse/GeneralDevice.h
blob: 44512f28635d4ff1dcae0d2779c3632a30d8cc36 (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
#ifndef _GENERALDEVICE_H_
#define _GENERALDEVICE_H_

#include <string>
#include <iostream>

//using std::istream;
using std::ostream;
using std::string;

class GeneralDevice
{
friend ostream &operator<<( ostream&, GeneralDevice &);

public:
	GeneralDevice();
	GeneralDevice(char *);
	virtual ~GeneralDevice();
	virtual void operator++(int) =0;
	virtual void operator--(int) =0;
	string getDeviceName();
	void setDeviceName(string);
	virtual void print()=0;
private:
	string deviceName;
};

#endif //_GENERALDEVICE_H_