StatisticProperties.cc
1.63 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
/*
* StatisticProperties.cc
*
* Created on: Nov 04, 2014
* Author: AKKA
*/
#include "StatisticProperties.hh"
namespace AMDA {
namespace ParamOutputImpl {
namespace Statistic {
StatisticProperties::StatisticProperties() :
_timeFormat(TimeTableCatalog::TimeTable::TIME_FORMAT::UNKNOWN),
_fileFormatKey(""),
_fileName(""), _outputStructure(ONE_FILE)
{
}
StatisticProperties::~StatisticProperties() {
for (auto paramProperties : _paramPropertiesList) {
delete paramProperties;
}
_paramPropertiesList.clear();
}
TimeTableCatalog::TimeTable::TIME_FORMAT StatisticProperties::getTimeFormat() const
{
return _timeFormat;
}
void StatisticProperties::setTimeFormat(TimeTableCatalog::TimeTable::TIME_FORMAT timeFormat)
{
_timeFormat = timeFormat;
}
std::string StatisticProperties::getFileFormatKey() const
{
return _fileFormatKey;
}
void StatisticProperties::setFileFormatKey(std::string fileFormatKey)
{
_fileFormatKey = fileFormatKey;
}
const std::string& StatisticProperties::getFileName() const {
return _fileName;
}
void StatisticProperties::setFileName(const std::string& fileName) {
_fileName = fileName;
}
OutputStructure StatisticProperties::getOutputStructure() const
{
return _outputStructure;
}
void StatisticProperties::setOutputStructure(OutputStructure outputStructure)
{
_outputStructure = outputStructure;
}
ParamPropertiesList& StatisticProperties::getParamPropertiesList() {
return _paramPropertiesList;
}
void StatisticProperties::addParamProperties(ParamProperties *paramProperties) {
_paramPropertiesList.push_back (paramProperties);
}
} // namespace Statistic
} // namespace ParamOutputImpl
} // namespace AMDA