Specifies an option that has a mock storage object for unit testing.
|
typedef OptionTemplate
< std::string, MockOption > | MyBase |
| Alias for the template class for use in base classes.
|
|
const std::string * | defaultValue () const |
| Returns a pointer to user-specified default value, or NULL if there is none.
|
|
const std::string * | defaultValueIfSet () const |
| Returns a pointer to user-specified default value, or NULL if there is none.
|
|
std::string * | store () const |
| Returns a pointer to the storage location, or NULL if none specified.
|
|
std::vector< std::string > * | storeVector () const |
| Returns a pointer to the storage vector, or NULL if none specified.
|
|
| OptionTemplate (const char *name) |
| Initializes the name and default values for an option.
|
|
MyClass & | me () |
| Returns *this casted into MyClass to reduce typing.
|
|
| AbstractOption (const char *name) |
| Initializes the name and default values for an option.
|
|
void | setDescription (const char *descr) |
| Sets the description for the option.
|
|
void | setStoreIsSet (bool *store) |
| Sets the storage location for whether the option is set.
|
|
void | setFlag (OptionFlag flag) |
| Sets a flag for the option.
|
|
void | clearFlag (OptionFlag flag) |
| Clears a flag for the option.
|
|
void | setFlag (OptionFlag flag, bool bSet) |
| Sets or clears a flag for the option.
|
|
bool | isVector () const |
| Returns true if the option is vector-valued.
|
|
void | setVector () |
| Sets the option to be vector-valued. More...
|
|
void | setValueCount (int count) |
| Sets the required number of values for the option.
|
|
int | minValueCount_ |
| Minimum number of values required for the option.
|
|
int | maxValueCount_ |
| Maximum number of values allowed for the option.
|
|