StatisticProperties.hh
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
/*
* StatisticProperties.hh
*
* Created on: Nov 04, 2014
* Author: AKKA
*/
#ifndef STATISTICPROPERTIES_HH_
#define STATISTICPROPERTIES_HH_
#include <string>
#include "StatisticParamProperties.hh"
#include "TimeTable.hh"
namespace AMDA {
namespace ParamOutputImpl {
namespace Statistic {
enum OutputStructure {
ONE_FILE,
ONE_FILE_PER_PARAMETER
};
typedef std::vector<ParamProperties *> ParamPropertiesList;
/**
* @class StatisticProperties
* @brief Properties of a statistic request.
* @details
*/
class StatisticProperties {
public:
StatisticProperties();
virtual ~StatisticProperties();
TimeTableCatalog::TimeTable::TIME_FORMAT getTimeFormat() const;
void setTimeFormat(TimeTableCatalog::TimeTable::TIME_FORMAT timeFormat);
std::string getFileFormatKey() const;
void setFileFormatKey(std::string fileFormatKey);
const std::string& getFileName() const;
void setFileName(const std::string& fileName);
OutputStructure getOutputStructure() const;
void setOutputStructure(OutputStructure outputStructure);
ParamPropertiesList& getParamPropertiesList();
void addParamProperties(ParamProperties *paramProperties);
private:
/**
* format of time
*/
TimeTableCatalog::TimeTable::TIME_FORMAT _timeFormat;
/*
* catalog writer key
*/
std::string _fileFormatKey;
/**
* File name
*/
std::string _fileName;
/**
* Output structure :
* - One file
* - One file per interval
*/
OutputStructure _outputStructure;
/**
* Parameter properties list
*/
ParamPropertiesList _paramPropertiesList;
};
} // namespace Statistic
} // namespace ParamOutputImpl
} // namespace AMDA
#endif /* STATISTICPROPERTIES_HH_ */