9 #include <fei_macros.hpp>
10 #include <fei_ParameterSet.hpp>
15 params_ =
new std::vector<const Param*>;
20 const_iterator iter =
begin(), iter_end =
end();
21 for(; iter != iter_end; ++iter) {
25 delete params_; params_ = NULL;
29 int& paramValue)
const
32 if (param == NULL)
return(-1);
34 if (param->
getType() != fei::Param::INT)
return(-1);
41 double& paramValue)
const
44 if (param == NULL)
return(-1);
46 if (param->
getType() == fei::Param::INT) {
49 else if (param->
getType() == fei::Param::DOUBLE) {
58 std::string& paramValue)
const
61 if (param == NULL)
return(-1);
63 if (param->
getType() != fei::Param::STRING)
return(-1);
70 bool& paramValue)
const
73 if (param == NULL)
return(-1);
75 if (param->
getType() != fei::Param::BOOL)
return(-1);
82 const void*& paramValue)
const
85 if (param == NULL)
return(-1);
87 if (param->
getType() != fei::Param::VOID)
return(-1);
ParamType getType() const
int getVoidParamValue(const char *name, const void *¶mValue) const
bool getBoolValue() const
int getBoolParamValue(const char *name, bool ¶mValue) const
double getDoubleValue() const
int getStringParamValue(const char *name, std::string ¶mValue) const
const void * getVoidValue() const
int getDoubleParamValue(const char *name, double ¶mValue) const
const std::string & getStringValue() const
const_iterator end() const
const_iterator begin() const
int getIntParamValue(const char *name, int ¶mValue) const