netxsimdg
Loading...
Searching...
No Matches
Config3 Class Reference
Inheritance diagram for Config3:
Inheritance graph
Collaboration diagram for Config3:
Collaboration graph

Public Types

enum  { VALUE_KEY , WEIGHT_KEY }
 
- Public Types inherited from Nextsim::Configured< Config3 >
typedef ConfigurationHelp::HelpMap HelpMap
 
using ConfigType
 

Public Member Functions

int getValue ()
 
double getWeight ()
 
void configure () override
 The configuration function.
 
- Public Member Functions inherited from Nextsim::Configured< Config3 >
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.
 
- Public Member Functions inherited from Nextsim::ConfiguredBase

Additional Inherited Members

- Static Public Member Functions inherited from Nextsim::Configured< Config3 >
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 Public Attributes inherited from Nextsim::Configured< Config3 >
static const std::map< int, std::string > keyMap
 A per-class static map to provide compile-time checking of configuration keys.
 
- Protected Member Functions inherited from Nextsim::Configured< Config3 >
void addOption (const std::string &name, const T &defaultValue)
 Adds an option to the per-class option map.
 
retrieveValue (const std::string &name)
 Retrieves a configured value of a single option.
 

Detailed Description

Definition at line 84 of file Configurator_test.cpp.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Definition at line 86 of file Configurator_test.cpp.

Constructor & Destructor Documentation

◆ Config3()

Config3::Config3 ( )
inline

Definition at line 90 of file Configurator_test.cpp.

Member Function Documentation

◆ configure()

void Config3::configure ( )
overridevirtual

The configuration function.

Implements Nextsim::Configured< Config3 >.

Definition at line 111 of file Configurator_test.cpp.

◆ getValue()

int Config3::getValue ( )
inline

Definition at line 95 of file Configurator_test.cpp.

◆ getWeight()

double Config3::getWeight ( )
inline

Definition at line 96 of file Configurator_test.cpp.


The documentation for this class was generated from the following file: