-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathalarm.h
40 lines (35 loc) · 937 Bytes
/
alarm.h
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
#include <iostream>
#include <string>
#include <vector>
#include "sensor.h"
using namespace std;
class Alarm {
public:
Alarm();
void setAlarmDate(string);
string getAlarmDate();
void setAlarmTime(string);
string getAlarmTime();
void setAlarmFileName(string);
string getAlarmFileName();
void setAlarmStatus(string);
string getAlarmStatus();
void setAlarmPlant(string);
string getAlarmPlant();
void setAlarmType(string);
string getAlarmType();
void setAlarmProtocol(string);
string getAlarmProtocol();
void addSensor(Sensor);
void deleteSensor(string);
void showAlarm();
private:
vector <Sensor> vSensors;
string date;
string time;
string fileName;
string status;
string plant;
string protocol;
string type;
};