m_description(paramDescription),
m_hasDefault(true)
{}
+ PARAM_ACTION(RESETABLE<T> & param)
+ : m_param(param),
+ m_hasDefault(false)
+ {}
PARAM_ACTION(RESETABLE<T> & param,
const std::string & paramDescription)
: m_param(param),
return PARSER_STATE(false, --argc, ++argv);
}
+template <>
+inline
+PARSER_STATE PARAM_ACTION<bool>::Parse(int argc, char ** argv, void * /*data*/)
+{
+m_param = true;
+return PARSER_STATE(false, argc, argv);
+}
+
template <typename T>
inline
void PARAM_ACTION<T>::ParseValue(const std::string & stringValue)
return new PARAM_ACTION<T>(param, defaultValue, paramDescription);
}
+template <typename T>
+inline
+PARAM_ACTION<T> * MakeParamAction(RESETABLE<T> & param)
+{
+return new PARAM_ACTION<T>(param);
+}
+
template <typename T>
inline
PARAM_ACTION<T> * MakeParamAction(RESETABLE<T> & param,