-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTV.h
More file actions
31 lines (25 loc) · 657 Bytes
/
TV.h
File metadata and controls
31 lines (25 loc) · 657 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
30
31
//////////////////////////////////////////
// Workfile : TV.h
// Author : Pascal Lang
// Date : 09.01.2021
// Description : Header for TV-Devices.
//////////////////////////////////////////
#ifndef TV_H
#define TV_H
#include "Object.h"
#include "Device.h"
#include <fstream>
class TV : public Device, public Object
{
public:
//prints device info to given ostream
void Info(std::ostream& ost) const override;
//sets the power state
void SetState(TStatePower const& state) override;
//returns current power state
TStatePower GetState() const override;
using SPtr = std::shared_ptr<TV>;
private:
TStatePower mState = TStatePower::eOff;
};
#endif