-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDevice.h
More file actions
29 lines (24 loc) · 666 Bytes
/
Copy pathDevice.h
File metadata and controls
29 lines (24 loc) · 666 Bytes
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
29
//////////////////////////////////////////
// Workfile : Device.h
// Author : Pascal Lang
// Date : 09.01.2021
// Description : Interface for Devices.
//////////////////////////////////////////
#ifndef DEVICE_H
#define DEVICE_H
#include <fstream>
#include "TStatePower.h"
class Device
{
public:
//prints the info of the device into the given ostream
virtual void Info(std::ostream& ost) const = 0;
//sets power state of device
virtual void SetState(TStatePower const& state) = 0;
//returns power state of device
virtual TStatePower GetState() const = 0;
//virtual destructor
virtual ~Device() = default;
using SPtr = std::shared_ptr<Device>;
};
#endif