#include <args.h>
Inheritance diagram for PConfigArgs:
Public Member Functions | |
Construction | |
PConfigArgs (const PArgList &args) | |
Overrides from class PArgList | |
virtual PINDEX | GetOptionCount (char optionChar) const |
virtual PINDEX | GetOptionCount (const char *optionStr) const |
virtual PINDEX | GetOptionCount (const PString &optionName) const |
virtual PString | GetOptionString (char optionChar, const char *dflt=NULL) const |
virtual PString | GetOptionString (const char *optionStr, const char *dflt=NULL) const |
virtual PString | GetOptionString (const PString &optionName, const char *dflt=NULL) const |
Overrides from class PArgList | |
void | Save (const PString &optionName) |
void | SetSectionName (const PString §ion) |
const PString & | GetSectionName () const |
void | SetNegationPrefix (const PString &prefix) |
const PString & | GetNegationPrefix () const |
Protected Member Functions | |
PString | CharToString (char ch) const |
Protected Attributes | |
PConfig | config |
PString | sectionName |
PString | negationPrefix |
|
|
|
|
|
Get the prefix for option negation. The default is "no-". |
|
Get the count of option
Reimplemented from PArgList. |
|
Get the count of option
Reimplemented from PArgList. |
|
Get the count of the number of times the option was specified on the command line.
Reimplemented from PArgList. |
|
Get option string.
Reimplemented from PArgList. |
|
Get option string.
Reimplemented from PArgList. |
|
Get option string. Gets the string associated with an option e.g. -ofile or -o file would return the string "file". An option may have an associated string if it had a ':' character folowing it in the specification string passed to the Parse() function.
Reimplemented from PArgList. |
|
Get the PConfig section name for options. |
|
Save the current options to the PConfig. This function will check to see if the option name is present and if so, save to the PConfig all of the arguments present in the currently parsed list. Note that the optionName for saving is not saved to the PConfig itself as this would cause the data to be saved always!
|
|
Set the prefix for option negation. The default is "no-".
|
|
Set the PConfig section name for options.
|
|
|
|
|
|
|