Blame view

src/amdaParameterGenerator/ParameterGenerator.hh 1.36 KB
fbe3c2bb   Benjamin Renard   First commit
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
/*
 * Parametergenerator.hh
 *
 *  Created on: Jan 24, 2013
 *      Author: f.casimir
 */

#ifndef PARAMETERGENERATOR_HH_
#define PARAMETERGENERATOR_HH_

#include "ParamOutput.hh"

namespace AMDA {
namespace Parameters {

/**
 * @class Generator
 * @brief This class is used to only compile Parameter.
 * @details This class takes as input a Parameter name and plays stage 'establishConnection' and 'init' with a time interval of zero.
 * The function 'apply' is empty. Under these conditions the program stops after compiling all the parameters elements.
 */
class Generator: public AMDA::Parameters::ParamOutput {
public:
	/**
	 * Constructor.
	 */
	Generator(AMDA::Parameters::ParameterManager& pParameterManager);
	/**
	 * Destructor.
	 */
	virtual ~Generator();

	// 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;
};

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