![]() |
PhoenixPresentation
2.0.0
Set of cmake function to automate presentation generation
|
Go to the source code of this file.
Functions | |
int | main (int argc, char **argv) |
void | printValueOfOpt (Option &opt, const PString &expectedLongOption, const PString &expectedShortOption, size_t expectedNbValue, bool expectedIsRequired, bool expectedAllowEmpty, const PString &expectedDocString) |
Print value of Option. More... | |
void | printValueOfOptConst (const Option &opt, const PString &expectedLongOption, const PString &expectedShortOption, size_t expectedNbValue, bool expectedIsRequired, bool expectedAllowEmpty, const PString &expectedDocString) |
Print value of Option. More... | |
void | testOption () |
Test the option type. More... | |
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 73 of file main.cpp.
References testOption().
void printValueOfOpt | ( | Option & | opt, |
const PString & | expectedLongOption, | ||
const PString & | expectedShortOption, | ||
size_t | expectedNbValue, | ||
bool | expectedIsRequired, | ||
bool | expectedAllowEmpty, | ||
const PString & | expectedDocString | ||
) |
Print value of Option.
opt | : Option to be printed |
expectedLongOption | : expected long option |
expectedShortOption | : expected short option |
expectedNbValue | : expected number of values |
expectedIsRequired | : expected value of is required |
expectedAllowEmpty | : expected value of is empty |
expectedDocString | : expected docstring |
Definition at line 42 of file main.cpp.
References Option::getDocString(), Option::getLongName(), Option::getShortName(), Option::getValue(), OptionValue::getValue(), Option::isAllowEmpty(), Option::isRequired(), phoenix_assert, and phoenix_check().
Referenced by testOption().
void printValueOfOptConst | ( | const Option & | opt, |
const PString & | expectedLongOption, | ||
const PString & | expectedShortOption, | ||
size_t | expectedNbValue, | ||
bool | expectedIsRequired, | ||
bool | expectedAllowEmpty, | ||
const PString & | expectedDocString | ||
) |
Print value of Option.
opt | : Option to be printed |
expectedLongOption | : expected long option |
expectedShortOption | : expected short option |
expectedNbValue | : expected number of values |
expectedIsRequired | : expected value of is required |
expectedAllowEmpty | : expected value of is empty |
expectedDocString | : expected docstring |
Definition at line 22 of file main.cpp.
References Option::getDocString(), Option::getLongName(), Option::getShortName(), Option::getValue(), OptionValue::getValue(), Option::isAllowEmpty(), Option::isRequired(), phoenix_assert, and phoenix_check().
Referenced by testOption().
void testOption | ( | ) |
Test the option type.
Definition at line 54 of file main.cpp.
References printValueOfOpt(), printValueOfOptConst(), Option::setDocString(), Option::setIsAllowEmpty(), Option::setIsParsed(), Option::setIsRequired(), Option::setLongName(), Option::setShortName(), Option::setValue(), and OptionType::STRING.
Referenced by main().