diff options
| author | Sven Eisenhauer <sven@sven-eisenhauer.net> | 2023-11-10 15:11:48 +0100 |
|---|---|---|
| committer | Sven Eisenhauer <sven@sven-eisenhauer.net> | 2023-11-10 15:11:48 +0100 |
| commit | 33613a85afc4b1481367fbe92a17ee59c240250b (patch) | |
| tree | 670b842326116b376b505ec2263878912fca97e2 /Bachelor/Prog2/Prakt2/SmartHouse/GeneralDevice.h | |
| download | Studium-33613a85afc4b1481367fbe92a17ee59c240250b.tar.gz Studium-33613a85afc4b1481367fbe92a17ee59c240250b.tar.bz2 | |
Diffstat (limited to 'Bachelor/Prog2/Prakt2/SmartHouse/GeneralDevice.h')
| -rw-r--r-- | Bachelor/Prog2/Prakt2/SmartHouse/GeneralDevice.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Bachelor/Prog2/Prakt2/SmartHouse/GeneralDevice.h b/Bachelor/Prog2/Prakt2/SmartHouse/GeneralDevice.h new file mode 100644 index 0000000..44512f2 --- /dev/null +++ b/Bachelor/Prog2/Prakt2/SmartHouse/GeneralDevice.h @@ -0,0 +1,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_
|
