36 void AddBool(
const char *pszName,
int *pnTarget,
int nValue);
62 const std::list<std::unique_ptr<Option>> &
GetOptions()
const {
72 std::list<std::unique_ptr<Option>> mOptions;
int GetIndex() const
Definition optionprocessor.h:67
void Process(int argc, char **argv)
Apply the options of a command line.
const std::list< std::unique_ptr< Option > > & GetOptions() const
Definition optionprocessor.h:62
~OptionProcessor()
Delete every option.
void AddString(const char *pszName, String *pTarget)
Add an option that reads the argument after it into a string.
void AddBool(const char *pszName, int *pnTarget, int nValue)
Add an option that stores a value when it is present.
OptionProcessor()=default
Construct a processor without options.
Growable text buffer that is also a PrnStream.
Definition string.h:19