|
enum | { VALUE_KEY
, WEIGHT_KEY
} |
|
typedef ConfigurationHelp::HelpMap | HelpMap |
|
using | ConfigType |
|
|
int | getValue () |
|
double | getWeight () |
|
void | configure () override |
| The configuration function.
|
|
const std::map< int, std::string > | keyMap |
|
const std::map< int, std::string > | keyMap |
|
const std::map< int, std::string > | keyMap |
|
const std::map< int, std::string > | keyMap |
|
virtual ConfigMap | getConfiguration () const |
| Returns the current configuration of the object.
|
|
|
static T | getConfiguration (const std::string &name, const T &defaultValue) |
| Gets the value of the configuration with a given name from the default Configurator.
|
|
static void | tryConfigure (T &ref) |
| Template function for conditionally configuring references.
|
|
static void | tryConfigure (T *ptr) |
| Template function for conditionally configuring classes via a pointer.
|
|
static ConfigMap | tryGetConfiguration (T &ref) |
| Template function for conditionally retrieving class configuration via a reference.
|
|
static ConfigMap | tryGetConfiguration (T *ptr) |
| Template function for conditionally retrieving class configuration via a pointer.
|
|
static HelpMap & | getHelpText (HelpMap &map, bool getAll) |
| Gets the text to be printed as the help text for this configuration.
|
|
static HelpMap & | getHelpRecursive (HelpMap &map, bool getAll) |
| Gets the configuration help text for the current class as well as any classes used herein.
|
|
static void | clearConfigurationMap () |
| Clear the configuration map. Usually used only in test suites.
|
|
static const std::map< int, std::string > | keyMap |
| A per-class static map to provide compile-time checking of configuration keys.
|
|
void | addOption (const std::string &name, const T &defaultValue) |
| Adds an option to the per-class option map.
|
|
T | retrieveValue (const std::string &name) |
| Retrieves a configured value of a single option.
|
|
Definition at line 84 of file Configurator_test.cpp.
◆ anonymous enum
◆ Config3()
◆ configure()
void Config3::configure |
( |
| ) |
|
|
overridevirtual |
◆ getValue()
int Config3::getValue |
( |
| ) |
|
|
inline |
◆ getWeight()
double Config3::getWeight |
( |
| ) |
|
|
inline |
The documentation for this class was generated from the following file: