-
Notifications
You must be signed in to change notification settings - Fork 4
/
Alert.h
44 lines (38 loc) · 1.08 KB
/
Alert.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
41
42
43
44
/* This file is a part of EAS Encoder.
*
* Copyright (C) 2018 Matthew Burket
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 3
* of the License, or (at your option) any later version.
*/
#ifndef SAMEENCODER_ALERT_H
#define SAMEENCODER_ALERT_H
#include <vector>
#include <string>
/**
* This this represents an EAS Alert
*/
class Alert {
public:
enum WATs {
NORMAL_WAT, NRW_WAT
};
std::string origin;
std::string event;
std::string length;
std::vector<std::string> areas;
int date;
int hour;
int minute;
std::string participant;
WATs wat;
void create_alert(std::string filename);
std::string create_header_string();
void create_wat(const std::vector<double> *sound_data);
private:
void create_eom_tones(const std::vector<double> *sound_data) const;
void create_header_tones(const std::vector<double> *sound_data, const std::string &header) const;
};
#endif //SAMEENCODER_ALERT_H