 |
PhoenixMock
1.8.7
Tools to split/merge/print mock used in Phoenix
|
Go to the documentation of this file.
40 Option opt(
"long",
"short",
"value",
"some doc");
44 Option optReq(
"long",
"short",
true,
"some doc");
58 int main(
int argc,
char** argv){
bool isRequired() const
Get if the option is required.
void setIsParsed(bool isParsed)
Say if the Option has been parsed or not.
void phoenix_print(const T &data, const std::string &suffix="", const std::string &prefix="")
Print data.
void printValueOfOpt(Option &opt)
Print value of Option.
void setDocString(const std::string &docString)
Set the documentation string of the Option.
const OptionValue & getValue() const
Get the value of the Option.
void printValueOfOptConst(const Option &opt)
Print value of Option.
bool isAllowEmpty() const
Get if the option value can be empty.
void setLongName(const std::string &longName)
Set the long name of the option.
void setValue(const OptionValue &value)
Set the value of the option.
void testOption()
Test the option type.
const std::string & getShortName() const
Get the short name of the Option.
void setShortName(const std::string &shortName)
Set the short name of the option.
const std::string & getLongName() const
Get the long name of the Option.
const VecValue & getValue() const
Get the vector of values.
void setIsAllowEmpty(bool isAllowEmpty)
Say if the option can be empty or not.
Describe the value of an option passed to a program.
void setIsRequired(bool isRequired)
Set if the option is required.
int main(int argc, char **argv)
const std::string & getDocString() const
Get the documentation string of the Option.