Blame view

src/amdaParameterInfo/ParameterInfo.hh 1.4 KB
ad920fd6   Benjamin Renard   First implementat...
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
/*
 * 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.
	*/
2f05d991   RENARD Benjamin   Generate param in...
50
	virtual void apply();
ad920fd6   Benjamin Renard   First implementat...
51
52
53
54
55
56
57
58
59
60
61
62
63
64

protected:

	/**
	 * @overload ParamOutput::init()
	*/
	virtual void init();

private:
	AMDA::Parameters::Parameter* 		 _parameter;
	std::string      _paramName;

	std::vector<std::string> getComponents();

2f05d991   RENARD Benjamin   Generate param in...
65
        void writeInfoFile();
ad920fd6   Benjamin Renard   First implementat...
66
67
68
69
70
71
	void writeTable(boost::shared_ptr<AMDA::Info::ParamTable> table1SPtr, AMDA::ParameterInfo::ParameterInfoFileWriter& fileWriter, std::string relatedDim);
};

} /* namespace Parameters */
} /* namespace AMDA */
#endif /* PARAMETERINFO_HH_ */