-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStereoCD.cpp
More file actions
48 lines (41 loc) · 973 Bytes
/
StereoCD.cpp
File metadata and controls
48 lines (41 loc) · 973 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
37
38
39
40
41
42
43
44
45
46
47
48
//////////////////////////////////////////
// Workfile : StereoCD.cpp
// Author : Michael Enzelsberger
// Date : 09.01.2021
// Description : Implementation for StereoCD-Devices.
//////////////////////////////////////////
#include "StereoCD.h"
using namespace std;
void StereoCD::Info(std::ostream& ost) const
{
ost << "CD is ";
//Prints the information
//if the StereoCD is open or closed
switch (mStateCD)
{
case TStateCD::eOpen: ost << "open" << endl;
break;
case TStateCD::eClosed: ost << "closed" << endl;
break;
}
}
void StereoCD::SetState(TStatePower const& state)
{
}
//returns that the Device is off
//funtion does not get called
//but has to be implemented
TStatePower StereoCD::GetState() const
{
return TStatePower::eOff;
}
//Sets the state of StereoCD to open or close
void StereoCD::SetStateCD(TStateCD const& state)
{
mStateCD = state;
}
//returns if StereoCD is open or closed
TStateCD StereoCD::GetStateCD() const
{
return mStateCD;
}