Base class for registered options. More...
#include <IpRegOptions.hpp>
Classes | |
class | string_entry |
class to hold the valid string settings for a string option More... | |
Public Member Functions | |
virtual void | OutputDescription (const Journalist &jnlst) const |
output a description of the option More... | |
virtual void | OutputShortDescription (const Journalist &jnlst) const |
output a more concise version More... | |
virtual void | OutputLatexDescription (const Journalist &jnlst) const |
output a latex version More... | |
virtual void | OutputDoxygenDescription (const Journalist &jnlst) const |
output a doxygen version More... | |
RegisteredOption (Index counter) | |
Constructors / Destructors. More... | |
RegisteredOption (const std::string &name, const std::string &short_description, const std::string &long_description, const std::string ®istering_category, Index counter) | |
RegisteredOption (const RegisteredOption ©) | |
virtual | ~RegisteredOption () |
virtual const std::string & | Name () const |
Standard Get / Set Methods. More... | |
virtual void | SetName (const std::string &name) |
Set the option's name (tag in the input file) More... | |
virtual const std::string & | ShortDescription () const |
Get the short description. More... | |
virtual const std::string & | LongDescription () const |
Get the long description. More... | |
virtual void | SetShortDescription (const std::string &short_description) |
Set the short description. More... | |
virtual void | SetLongDescription (const std::string &long_description) |
Set the long description. More... | |
virtual const std::string & | RegisteringCategory () const |
Get the registering class. More... | |
virtual void | SetRegisteringCategory (const std::string ®istering_category) |
Set the registering class. More... | |
virtual const RegisteredOptionType & | Type () const |
Get the Option's type. More... | |
virtual void | SetType (const RegisteredOptionType &type) |
Get the Option's type. More... | |
virtual Index | Counter () const |
Counter. More... | |
Get / Set methods valid for specific types | |
| |
virtual const bool & | HasLower () const |
check if the option has a lower bound More... | |
virtual const bool & | LowerStrict () const |
check if the lower bound is strict More... | |
virtual Number | LowerNumber () const |
get the Number version of the lower bound More... | |
virtual void | SetLowerNumber (const Number &lower, const bool &strict) |
set the Number version of the lower bound More... | |
virtual Index | LowerInteger () const |
get the Integer version of the lower bound More... | |
virtual void | SetLowerInteger (const Index &lower) |
set the Integer version of the lower bound More... | |
virtual const bool & | HasUpper () const |
check if the option has an upper bound More... | |
virtual const bool & | UpperStrict () const |
check if the upper bound is strict More... | |
virtual Number | UpperNumber () const |
get the Number version of the upper bound More... | |
virtual void | SetUpperNumber (const Number &upper, const bool &strict) |
set the Number version of the upper bound More... | |
virtual Index | UpperInteger () const |
get the Integer version of the upper bound More... | |
virtual void | SetUpperInteger (const Index &upper) |
set the Integer version of the upper bound More... | |
virtual void | AddValidStringSetting (const std::string value, const std::string description) |
method to add valid string entries More... | |
virtual Number | DefaultNumber () const |
get the default as a Number More... | |
virtual void | SetDefaultNumber (const Number &default_value) |
Set the default as a Number. More... | |
virtual Index | DefaultInteger () const |
get the default as an Integer More... | |
virtual void | SetDefaultInteger (const Index &default_value) |
Set the default as an Integer. More... | |
virtual std::string | DefaultString () const |
get the default as a string More... | |
virtual Index | DefaultStringAsEnum () const |
get the default as a string, but as the index of the string in the list More... | |
virtual void | SetDefaultString (const std::string &default_value) |
Set the default as a string. More... | |
virtual std::vector< string_entry > | GetValidStrings () const |
get the valid string settings More... | |
virtual bool | IsValidNumberSetting (const Number &value) const |
Check if the Number value is a valid setting. More... | |
virtual bool | IsValidIntegerSetting (const Index &value) const |
Check if the Integer value is a valid setting. More... | |
virtual bool | IsValidStringSetting (const std::string &value) const |
Check if the String value is a valid setting. More... | |
virtual std::string | MapStringSetting (const std::string &value) const |
Map a user setting (allowing any case) to the case used when the setting was registered. More... | |
virtual Index | MapStringSettingToEnum (const std::string &value) const |
Map a user setting (allowing any case) to the index of the matched setting in the list of string settings. More... | |
![]() | |
ReferencedObject () | |
virtual | ~ReferencedObject () |
Index | ReferenceCount () const |
void | AddRef (const Referencer *referencer) const |
void | ReleaseRef (const Referencer *referencer) const |
Private Member Functions | |
void | MakeValidLatexString (std::string source, std::string &dest) const |
std::string | MakeValidLatexNumber (Number value) const |
std::string | MakeValidHTMLNumber (Number value) const |
bool | string_equal_insensitive (const std::string &s1, const std::string &s2) const |
Compare two strings and return true if they are equal (case insensitive comparison) More... | |
Private Attributes | |
std::string | name_ |
std::string | short_description_ |
std::string | long_description_ |
std::string | registering_category_ |
RegisteredOptionType | type_ |
bool | has_lower_ |
bool | lower_strict_ |
Number | lower_ |
bool | has_upper_ |
bool | upper_strict_ |
Number | upper_ |
Number | default_number_ |
std::vector< string_entry > | valid_strings_ |
std::string | default_string_ |
const Index | counter_ |
Has the information as how many-th option this one was registered. More... | |
Base class for registered options.
The derived types are more specific to a string option or a Number (real) option, etc.
Definition at line 33 of file IpRegOptions.hpp.
|
inline |
Constructors / Destructors.
Definition at line 54 of file IpRegOptions.hpp.
|
inline |
Definition at line 64 of file IpRegOptions.hpp.
|
inline |
Definition at line 82 of file IpRegOptions.hpp.
|
inlinevirtual |
Definition at line 99 of file IpRegOptions.hpp.
|
inlinevirtual |
Standard Get / Set Methods.
Get the option's name (tag in the input file)
Definition at line 109 of file IpRegOptions.hpp.
|
inlinevirtual |
Set the option's name (tag in the input file)
Definition at line 114 of file IpRegOptions.hpp.
|
inlinevirtual |
Get the short description.
Definition at line 121 of file IpRegOptions.hpp.
|
inlinevirtual |
Get the long description.
Definition at line 127 of file IpRegOptions.hpp.
|
inlinevirtual |
Set the short description.
Definition at line 133 of file IpRegOptions.hpp.
|
inlinevirtual |
Set the long description.
Definition at line 141 of file IpRegOptions.hpp.
|
inlinevirtual |
Get the registering class.
Definition at line 149 of file IpRegOptions.hpp.
|
inlinevirtual |
Set the registering class.
Definition at line 155 of file IpRegOptions.hpp.
|
inlinevirtual |
Get the Option's type.
Definition at line 163 of file IpRegOptions.hpp.
|
inlinevirtual |
Get the Option's type.
Definition at line 169 of file IpRegOptions.hpp.
|
inlinevirtual |
Counter.
Definition at line 177 of file IpRegOptions.hpp.
|
inlinevirtual |
check if the option has a lower bound
can be called for OT_Number & OT_Integer
Definition at line 192 of file IpRegOptions.hpp.
|
inlinevirtual |
check if the lower bound is strict
can be called for OT_Number
Definition at line 202 of file IpRegOptions.hpp.
|
inlinevirtual |
get the Number version of the lower bound
can be called for OT_Number
Definition at line 212 of file IpRegOptions.hpp.
|
inlinevirtual |
set the Number version of the lower bound
can be called for OT_Number
Definition at line 222 of file IpRegOptions.hpp.
|
inlinevirtual |
get the Integer version of the lower bound
can be called for OT_Integer
Definition at line 236 of file IpRegOptions.hpp.
|
inlinevirtual |
set the Integer version of the lower bound
can be called for OT_Integer
Definition at line 246 of file IpRegOptions.hpp.
|
inlinevirtual |
check if the option has an upper bound
can be called for OT_Number & OT_Integer
Definition at line 259 of file IpRegOptions.hpp.
|
inlinevirtual |
check if the upper bound is strict
can be called for OT_Number
Definition at line 269 of file IpRegOptions.hpp.
|
inlinevirtual |
get the Number version of the upper bound
can be called for OT_Number
Definition at line 279 of file IpRegOptions.hpp.
|
inlinevirtual |
set the Number version of the upper bound
can be called for OT_Number
Definition at line 289 of file IpRegOptions.hpp.
|
inlinevirtual |
get the Integer version of the upper bound
can be called for OT_Integer
Definition at line 304 of file IpRegOptions.hpp.
|
inlinevirtual |
set the Integer version of the upper bound
can be called for OT_Integer
Definition at line 314 of file IpRegOptions.hpp.
|
inlinevirtual |
method to add valid string entries
can be called for OT_String
Definition at line 327 of file IpRegOptions.hpp.
|
inlinevirtual |
get the default as a Number
can be called for OT_Number
Definition at line 339 of file IpRegOptions.hpp.
|
inlinevirtual |
Set the default as a Number.
can be called for OT_Number
Definition at line 349 of file IpRegOptions.hpp.
|
inlinevirtual |
get the default as an Integer
can be called for OT_Integer
Definition at line 361 of file IpRegOptions.hpp.
|
inlinevirtual |
Set the default as an Integer.
can be called for OT_Integer
Definition at line 371 of file IpRegOptions.hpp.
|
inlinevirtual |
get the default as a string
can be called for OT_String
Definition at line 383 of file IpRegOptions.hpp.
|
inlinevirtual |
get the default as a string, but as the index of the string in the list
helps map from a string to an enum
can be called for OT_String
Definition at line 395 of file IpRegOptions.hpp.
|
inlinevirtual |
Set the default as a string.
can be called for OT_String
Definition at line 405 of file IpRegOptions.hpp.
|
inlinevirtual |
get the valid string settings
can be called for OT_String
Definition at line 417 of file IpRegOptions.hpp.
|
inlinevirtual |
Check if the Number value is a valid setting.
can be called for OT_Number
Definition at line 427 of file IpRegOptions.hpp.
|
inlinevirtual |
Check if the Integer value is a valid setting.
can be called for OT_Integer
Definition at line 447 of file IpRegOptions.hpp.
|
virtual |
Check if the String value is a valid setting.
can be called for OT_String
|
virtual |
Map a user setting (allowing any case) to the case used when the setting was registered.
|
virtual |
Map a user setting (allowing any case) to the index of the matched setting in the list of string settings.
Helps map a string setting to an enumeration.
|
virtual |
output a description of the option
|
virtual |
output a more concise version
|
virtual |
output a latex version
|
virtual |
output a doxygen version
|
private |
|
private |
|
private |
|
private |
Compare two strings and return true if they are equal (case insensitive comparison)
|
private |
Definition at line 509 of file IpRegOptions.hpp.
|
private |
Definition at line 510 of file IpRegOptions.hpp.
|
private |
Definition at line 511 of file IpRegOptions.hpp.
|
private |
Definition at line 512 of file IpRegOptions.hpp.
|
private |
Definition at line 513 of file IpRegOptions.hpp.
|
private |
Definition at line 515 of file IpRegOptions.hpp.
|
private |
Definition at line 516 of file IpRegOptions.hpp.
|
private |
Definition at line 517 of file IpRegOptions.hpp.
|
private |
Definition at line 518 of file IpRegOptions.hpp.
|
private |
Definition at line 519 of file IpRegOptions.hpp.
|
private |
Definition at line 520 of file IpRegOptions.hpp.
|
private |
Definition at line 521 of file IpRegOptions.hpp.
|
private |
Definition at line 542 of file IpRegOptions.hpp.
|
private |
Definition at line 543 of file IpRegOptions.hpp.
|
private |
Has the information as how many-th option this one was registered.
Definition at line 547 of file IpRegOptions.hpp.