15 PVecString vecValue, vecDefaultValue, vecPossibleValue;
24 PVecString vecValue, vecDefaultValue, vecPossibleValue;
25 vecValue.push_back(value);
45 vecValue.push_back(value);
67 vecValue.push_back(value);
115 vecValue.push_back(value);
PString convertOptionTypeToString(OptionType::OptionType type)
Convert the OptionType into PString.
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.
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.
PVecString p_vecValue
Vector of the values of the OptionValue.
PPath path_completion_dirOnly(const PPath &basePath)
Return all directories only which match the basePath.
PPath path_completion_all(const PPath &basePath)
Return all path/files which match the basePath.
PString value_completion(const PString &baseValue, const PVecString &vecPossibleValue)
Complete the given value.