7 #ifndef __POPTIONVALUE_H__
8 #define __POPTIONVALUE_H__
55 void getValue(T & value,
bool isParsed)
const;
57 void getValue(std::vector<T> & vecValue,
bool isParsed)
const;
std::vector< PString > PVecString
Describe the value of an option passed to a program.
void initialisationOptionValue(const PVecString &vecValue, OptionType::OptionType type, const PVecString &vecDefaultValue, const PVecString &vecPossibleValue)
Initialisation function of the class OptionValue.
virtual ~OptionValue()
Destructeur of OptionValue.
const PVecString & getValue() const
Get the vector of values.
void setValue(const PString &value)
Set the value of the OptionValue.
void setVecPossibleValue(const PVecString &vecPossibleValue)
Set the vector of possible values.
OptionValue & operator=(const OptionValue &other)
Definition of equal operator of OptionValue.
PVecString p_vecDefaultValue
Default value of the OptionValue.
void bashCompletionValue(PString &strBashCompletion, const PString &cursorOption) const
Print the possible value to the bash completion.
void addValue(const PString &value)
Add value of the OptionValue.
void setDefaultValue(const T &value)
Set the value in the OptionValue.
PVecString p_vecPossibleValue
Vector of the possible value for the OptionValue.
OptionValue(OptionType::OptionType type=OptionType::STRING)
Default constructeur of OptionValue.
OptionType::OptionType getType() const
Get the type of the OptionValue.
void copyOptionValue(const OptionValue &other)
Copy function of OptionValue.
const PVecString & getDefaultValue() const
Get the default value of the OptionValue.
const PVecString & getPossibleValue() const
Get the possible values of the OptionValue.
OptionType::OptionType p_type
Type of the OptionValue.
void setType(OptionType::OptionType type)
Set the type of the OptionValue.
void checkTypeFromTemplate() const
Check the type from the template.
PVecString p_vecValue
Vector of the values of the OptionValue.