7 #ifndef __POPTIONVALUE_IMPL_H__
8 #define __POPTIONVALUE_IMPL_H__
21 vecValue.push_back(valueBinStr);
39 checkTypeFromTemplate<T>();
42 std::runtime_error(
"OptionValue::getValue : several value but only one value in parameter");
49 std::runtime_error(
"OptionValue::getValue : several value but only one value in parameter");
60 checkTypeFromTemplate<T>();
63 vecValue.push_back(stringToValue<T>(*it));
67 vecValue.push_back(stringToValue<T>(*it));
79 std::stringstream strError;
81 throw std::runtime_error(strError.str());
PString convertOptionTypeToString(OptionType::OptionType type)
Convert the OptionType into PString.
bool isOptionTypeCompatible(OptionType::OptionType typeFromParam, OptionType::OptionType typeFromType)
Say if two types are compatible.
std::vector< PString > PVecString
const PVecString & getValue() const
Get the vector of values.
PVecString p_vecDefaultValue
Default value of the OptionValue.
void setDefaultValue(const T &value)
Set the value in the OptionValue.
OptionType::OptionType p_type
Type of the OptionValue.
void checkTypeFromTemplate() const
Check the type from the template.
PVecString p_vecValue
Vector of the values of the OptionValue.
PString & fromValue(const T &other)
Convert a value to a PString.