ParameterInfo.hh
1.37 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
/*
* ParameterInfo.hh
*
* Created on: Mar 18, 2016
* Author: b.renard
*/
#ifndef PARAMETERINFO_HH_
#define PARAMETERINFO_HH_
#include "ParamOutput.hh"
#include "ParamMgr.hh"
#include "ParameterInfoFileWriter.hh"
namespace AMDA {
namespace Parameters {
/**
* @class ParameterInfo
* @brief Get information about a given parameter.
* @details
*/
class ParameterInfo: public AMDA::Parameters::ParamOutput {
public:
/**
* Constructor.
*/
ParameterInfo(AMDA::Parameters::ParameterManager& pParameterManager);
/**
* Destructor.
*/
virtual ~ParameterInfo();
// Getter methods
const std::string& getParamName() const { return _paramName; }
// Setter methods
void setParamName(const std::string& paramName) { _paramName = paramName; }
/**
* @overload DataClient::establishConnection()
*/
virtual void establishConnection();
/**
* @overload ParamOutput::apply()
* @brief Empty method.
*/
virtual void apply() {}
protected:
/**
* @overload ParamOutput::init()
*/
virtual void init();
private:
AMDA::Parameters::Parameter* _parameter;
std::string _paramName;
std::vector<std::string> getComponents();
void writeTable(boost::shared_ptr<AMDA::Info::ParamTable> table1SPtr, AMDA::ParameterInfo::ParameterInfoFileWriter& fileWriter, std::string relatedDim);
};
} /* namespace Parameters */
} /* namespace AMDA */
#endif /* PARAMETERINFO_HH_ */