-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStereo.h
More file actions
36 lines (28 loc) · 784 Bytes
/
Stereo.h
File metadata and controls
36 lines (28 loc) · 784 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
32
33
34
35
36
//////////////////////////////////////////
// Workfile : Stereo.h
// Author : Pascal Lang
// Date : 09.01.2021
// Description : Header for Stereo-Devices.
//////////////////////////////////////////
#ifndef STEREO_H
#define STEREO_H
#include "Object.h"
#include "Device.h"
#include "StereoCD.h"
#include <fstream>
#include "TStatePower.h"
class Stereo : public Device, public Object
{
public:
//it is possible to create a stereo device with or
//without a cd drive.
Stereo(StereoCD::SPtr const& cd);
void Info(std::ostream& ost) const override;
void SetState(TStatePower const& state) override;
TStatePower GetState() const override;
using SPtr = std::shared_ptr<Stereo>;
private:
TStatePower mState = TStatePower::eOff;
StereoCD::SPtr mCD_Unit = nullptr;
};
#endif