24 #ifndef _PARAMTYPES_HPP_
25 #define _PARAMTYPES_HPP_
33 #include <boost/shared_ptr.hpp>
100 : cvid(_cvid),
value(_value ?
"true" :
"false"), units(_units)
111 template<
typename value_type>
115 : boost::lexical_cast<value_type>(0);
119 std::string name()
const;
122 std::string unitsName()
const;
125 double timeInSeconds()
const;
128 std::string valueFixedNotation()
const;
175 inline bool CVParam::valueAs<bool>()
const
177 return value ==
"true";
200 const std::string& _value =
"",
201 const std::string& _type =
"",
210 template<
typename value_type>
214 : boost::lexical_cast<value_type>(0);
230 inline bool UserParam::valueAs<bool>()
const
232 return value ==
"true";
256 CVParam cvParam(CVID cvid)
const;
262 CVParam cvParamChild(CVID cvid)
const;
268 std::vector<CVParam> cvParamChildren(CVID cvid)
const;
271 bool hasCVParam(CVID cvid)
const;
274 bool hasCVParamChild(CVID cvid)
const;
279 UserParam userParam(
const std::string&)
const;
291 template <
typename value_type>
314 inline void ParamContainer::set<bool>(CVID cvid,
bool value, CVID units)
316 set(cvid, (
value ?
"true" :
"false"), units);
337 #endif // _PARAMTYPES_HPP_