-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHome_Appliance.h
More file actions
118 lines (95 loc) · 2.34 KB
/
Home_Appliance.h
File metadata and controls
118 lines (95 loc) · 2.34 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
/********************************************************************************************
* @file Home_Appliance.h
*
* @brief Base class function prototypes for the Home_Appliance driver
*
* @author Aysenur Bolat
*
* @version V1.0
*
* @date 28. December 2018
*********************************************************************************************/
#ifndef HOME_APPLIANCE_H
#define HOME_APPLIANCE_H
#include <iostream>
#include <string>
using namespace std;
/** class Home_Appliance
* brief an abstract home appliance
* details This abstract class incorporates properties common to
* home appliance types: Refrigerator, Dishwasher and
* Washing Machine.
*/
class Home_Appliance
{
public:
// create a Home_Appliance class
Home_Appliance(string,int,int,int,string);
/**
\brief Set identification code
\return void
*/
void setIdentificationCode( string );
/**
\brief Set height of home appliance
\return void
*/
void setHeight( int );
/**
\brief Set length of home appliance
\return void
*/
void setLength( int );
/**
\brief Set width of home appliance
\return void
*/
void setWidth( int );
/**
\brief Set energy consumption class of home appliance
\return void
*/
void setEnergyConsumptionClass( string );
/**
\brief Print properties of home appliance
\return void
*/
void printProperties() const;
/**
\brief Get identification code of home appliance
\return string
*/
string getIdentificationCode() const;
/**
\brief Get height of home appliance
\return integer
*/
int getHeight() const;
/**
\brief Get length of home appliance
\return integer
*/
int getLength() const;
/**
\brief Get width of home appliance
\return integer
*/
int getWidth() const;
/**
\brief Get energy consumption class of home appliance
\return string
*/
string getEnergyConsumptionClass() const;
/**
\brief Detect if the given string consists of letters
\return bool
*/
bool IsLetter(string input) const;
protected:
string identificationCode;
int height;
int length;
int width;
string energyConsumptionClass;
};
#endif