7 #ifndef __POPTIONPARSER_IMPL_H__
8 #define __POPTIONPARSER_IMPL_H__
26 Option option(longOption, shortOption, value,
false, docString);
42 checkOptionType<T>(optionType);
46 Option option(longOption, shortOption, value,
false, docString);
58 std::stringstream strError;
60 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.
void addOption(const PString &longOption, const PString &shortOption, OptionType::OptionType optionType, bool isRequired, const PString &docString)
Add an option in the OptionParser.
VecMode p_vecMode
Vector of all the defined mode in the OptionParser.
void checkOptionType(OptionType::OptionType optionType)
Check the given option type.
Describe the value of an option passed to a program.
void setDefaultValue(const T &value)
Set the value in the OptionValue.
void setType(OptionType::OptionType type)
Set the type of the OptionValue.
Describes an option passed to a program.