|
virtual void | clear () |
| Method for clearing all previously set options.
|
|
virtual void | PrintList (std::string &list) const |
| Get a string with the list of all options (tag, value, counter)
|
|
virtual void | PrintUserOptions (std::string &list) const |
| Get a string with the list of all options set by the user (tag, value, used/notused).
|
|
virtual bool | ReadFromStream (const Journalist &jnlst, std::istream &is, bool allow_clobber=false) |
| Read options from the stream is.
|
|
|
| OptionsList (SmartPtr< RegisteredOptions > reg_options, SmartPtr< Journalist > jnlst) |
|
| OptionsList () |
|
| OptionsList (const OptionsList ©) |
| Copy Constructor.
|
|
virtual | ~OptionsList () |
| Destructor.
|
|
virtual OptionsList & | operator= (const OptionsList &source) |
| Default Assignment Operator.
|
|
|
virtual void | SetRegisteredOptions (const SmartPtr< RegisteredOptions > reg_options) |
|
virtual void | SetJournalist (const SmartPtr< Journalist > jnlst) |
|
|
virtual bool | SetStringValue (const std::string &tag, const std::string &value, bool allow_clobber=true, bool dont_print=false) |
|
virtual bool | SetNumericValue (const std::string &tag, Number value, bool allow_clobber=true, bool dont_print=false) |
|
virtual bool | SetIntegerValue (const std::string &tag, Index value, bool allow_clobber=true, bool dont_print=false) |
|
virtual bool | SetBoolValue (const std::string &tag, bool value, bool allow_clobber=true, bool dont_print=false) |
|
virtual bool | UnsetValue (const std::string &tag) |
| Resets an option to its default value, if clobber is allowed.
|
|
|
virtual bool | SetStringValueIfUnset (const std::string &tag, const std::string &value, bool allow_clobber=true, bool dont_print=false) |
|
virtual bool | SetNumericValueIfUnset (const std::string &tag, Number value, bool allow_clobber=true, bool dont_print=false) |
|
virtual bool | SetIntegerValueIfUnset (const std::string &tag, Index value, bool allow_clobber=true, bool dont_print=false) |
|
virtual bool | SetBoolValueIfUnset (const std::string &tag, bool value, bool allow_clobber=true, bool dont_print=false) |
|
|
If a tag is not found, the methods return false, and value is set to the default value defined in the registered options.
|
virtual bool | GetStringValue (const std::string &tag, std::string &value, const std::string &prefix) const |
|
virtual bool | GetEnumValue (const std::string &tag, Index &value, const std::string &prefix) const |
|
virtual bool | GetBoolValue (const std::string &tag, bool &value, const std::string &prefix) const |
|
virtual bool | GetNumericValue (const std::string &tag, Number &value, const std::string &prefix) const |
|
virtual bool | GetIntegerValue (const std::string &tag, Index &value, const std::string &prefix) const |
|
| ReferencedObject () |
|
virtual | ~ReferencedObject () |
|
Index | ReferenceCount () const |
|
void | AddRef (const Referencer *referencer) const |
|
void | ReleaseRef (const Referencer *referencer) const |
|
This class stores a list of user set options.
Each option is identified by a case-insensitive keyword (tag). Its value is stored internally as a string (always lower case), but for convenience set and get methods are provided to obtain Index and Number type values. For each keyword we also keep track of how often the value of an option has been requested by a get method.
Definition at line 32 of file IpOptionsList.hpp.