 |
PhoenixMock
1.8.7
Tools to split/merge/print mock used in Phoenix
|
Go to the documentation of this file.
7 #ifndef __POPTIONVALUE_H__
8 #define __POPTIONVALUE_H__
34 void setValue(
const std::string & value);
36 void addValue(
const std::string & value);
59 void getValue(T & value,
bool isParsed)
const;
61 void getValue(std::vector<T> & vecValue,
bool isParsed)
const;
63 void getValue(std::list<T> & vecValue,
bool isParsed)
const;
65 void bashCompletionValue(std::string & strBashCompletion,
const std::string & cursorOption)
const;
OptionValue & operator=(const OptionValue &other)
Definition of equal operator of OptionValue.
void setType(OptionType::OptionType type)
Set the type of the OptionValue.
OptionType::OptionType getType() const
Get the type of the OptionValue.
const VecValue & getPossibleValue() const
Get the possible values of the OptionValue.
OptionType::OptionType p_type
Type of the OptionValue.
void bashCompletionValue(std::string &strBashCompletion, const std::string &cursorOption) const
Print the possible value to the bash completion.
void addValue(const std::string &value)
Add value of the OptionValue.
void checkTypeFromTemplate() const
Check the type from the template.
void setDefaultValue(const T &value)
Set the value in the OptionValue.
void initialisationOptionValue(const VecValue &vecValue, OptionType::OptionType type, const VecValue &vecDefaultValue, const VecValue &vecPossibleValue)
Initialisation function of the class OptionValue.
VecValue p_vecDefaultValue
Default value of the OptionValue.
OptionValue(OptionType::OptionType type=OptionType::STRING)
Default constructeur of OptionValue.
void copyOptionValue(const OptionValue &other)
Copy function of OptionValue.
const VecValue & getValue() const
Get the vector of values.
Describe the value of an option passed to a program.
VecValue p_vecValue
Vector of the values of the OptionValue.
virtual ~OptionValue()
Destructeur of OptionValue.
void setValue(const std::string &value)
Set the value of the OptionValue.
const VecValue & getDefaultValue() const
Get the default value of the OptionValue.
std::vector< std::string > VecValue
Vector of values.
VecValue p_vecPossibleValue
Vector of the possible value for the OptionValue.