 |
PhoenixMock
1.8.7
Tools to split/merge/print mock used in Phoenix
|
Go to the documentation of this file.
14 VecValue vecValue, vecDefaultValue, vecPossibleValue;
23 VecValue vecValue, vecDefaultValue, vecPossibleValue;
24 vecValue.push_back(value);
33 VecValue vecDefaultValue, vecPossibleValue;
44 vecValue.push_back(value);
66 vecValue.push_back(value);
114 vecValue.push_back(value);
176 strBashCompletion +=
" " + *it;
OptionValue & operator=(const OptionValue &other)
Definition of equal operator of OptionValue.
std::string convertOptionTypeToString(OptionType::OptionType type)
Convert the OptionType into string.
void setType(OptionType::OptionType type)
Set the type of the OptionValue.
std::string path_completion_all(const std::string &basePath)
Return all path/files which match the basePath.
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.
std::string path_completion_dirOnly(const std::string &basePath)
Return all directories only which match the basePath.
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.