Class ConfiguredModule

Class Documentation

class ConfiguredModule

A helper class to load modules based on the configuration.

Public Functions

ConfiguredModule() = default
virtual ~ConfiguredModule() = default

Public Static Functions

static std::string getImpl(const std::string &interface)

Gets the implementation name for a named module. Returns an empty string if there is no such module.

Parameters:

interface – the name of the module to be checked.

static ConfigMap getAllModuleConfigurations()

Returns a map from interface name to implementation name for all modules configured in this class.

static std::string addPrefix(const std::string &moduleName)

Transforms a module name into a configuration option name.

Parameters:

moduleName – The module name to be prefixed.

Public Static Attributes

static const std::string MODULE_PREFIX = "Modules"

The configuration options section name for modules.