ewmscp
..
|
class to hold a list of options that are to be handled by a foreign option parser More...
#include <OptionsWithForeignParser.h>
Public Member Functions | |
ForeignApplicationOptions (const char *aName) | |
construct an object of typs ForeignApplicationOptions More... | |
void | fRegister (const ForeignOption *aOption) |
add aOption to the list of options that were set. More... | |
void | fFinalize () |
build the internal argument vector for the call to the external parser More... | |
template<typename InputIt > | |
void | fFinalize (InputIt from, InputIt to) |
build the internal argument vector for the call to the external parser and adds strings from the iterators in the range [from,to) More... | |
void | fAddToArgc (const char *aString) |
add string to the argument vector for the external parser More... | |
void | fAddToArgc (const std::string &aString) |
add string to the argument vector for the external parser More... | |
char ** | Argv () |
return an argument vector for use with the external parser More... | |
int * | Argc () |
return a pointer to the argument count for use with the external parser More... | |
Private Attributes | |
std::vector< const ForeignOption * > | lOptions |
std::string | lName |
std::vector< char * > | lArgv |
int | lArgc |
class to hold a list of options that are to be handled by a foreign option parser
Definition at line 10 of file OptionsWithForeignParser.h.
options::ForeignApplicationOptions::ForeignApplicationOptions | ( | const char * | aName | ) |
construct an object of typs ForeignApplicationOptions
in a derived class the constructor should generete via new the ForeignOption objects that are recognized by the corresponing parser.
Definition at line 8 of file OptionsWithForeignParser.cpp.
References lArgc.
int * options::ForeignApplicationOptions::Argc | ( | ) |
return a pointer to the argument count for use with the external parser
Definition at line 44 of file OptionsWithForeignParser.cpp.
References lArgc.
char ** options::ForeignApplicationOptions::Argv | ( | ) |
return an argument vector for use with the external parser
Definition at line 40 of file OptionsWithForeignParser.cpp.
References lArgv.
void options::ForeignApplicationOptions::fAddToArgc | ( | const char * | aString | ) |
add string to the argument vector for the external parser
Definition at line 30 of file OptionsWithForeignParser.cpp.
Referenced by options::ForeignOption::fAddArgs(), and fFinalize().
void options::ForeignApplicationOptions::fAddToArgc | ( | const std::string & | aString | ) |
void options::ForeignApplicationOptions::fFinalize | ( | ) |
build the internal argument vector for the call to the external parser
This function must be called before Argc() and Argv() may be called. it adds all the canonical forms of the options thate were set to the argument vector.
Definition at line 22 of file OptionsWithForeignParser.cpp.
References lArgv, lName, and lOptions.
Referenced by fFinalize(), and main().
|
inline |
build the internal argument vector for the call to the external parser and adds strings from the iterators in the range [from,to)
This function must be called before Argc() and Argv() may be called. it adds all the canonical forms of the options thate were set to the argument vector. and adds strings from the iterators in the range [from,to)
Definition at line 21 of file OptionsWithForeignParser.h.
References fAddToArgc(), and fFinalize().
void options::ForeignApplicationOptions::fRegister | ( | const ForeignOption * | aOption | ) |
add aOption to the list of options that were set.
Definition at line 14 of file OptionsWithForeignParser.cpp.
References lOptions.
Referenced by options::ForeignOption::fSetMe(), and options::ForeignOption::fSetMeNoarg().
|
private |
Definition at line 15 of file OptionsWithForeignParser.h.
Referenced by Argc(), fAddToArgc(), and ForeignApplicationOptions().
|
private |
Definition at line 14 of file OptionsWithForeignParser.h.
Referenced by Argv(), fAddToArgc(), and fFinalize().
|
private |
Definition at line 13 of file OptionsWithForeignParser.h.
Referenced by fFinalize().
|
private |
Definition at line 12 of file OptionsWithForeignParser.h.
Referenced by fFinalize(), and fRegister().