Realm
A distributed, event-based tasking library
Loading...
Searching...
No Matches
PRealm::ModuleConfig Class Reference

#include <module_config.h>

Inheritance diagram for PRealm::ModuleConfig:
[legend]

Public Member Functions

virtual ~ModuleConfig (void)
template<typename T>
RealmStatus set_property (const std::string &name, T value)
template<typename T>
RealmStatus get_property (const std::string &name, T &value) const
void finish_configure (void)
const std::string & get_name (void) const
template<typename T>
RealmStatus get_resource (const std::string &name, T &value) const
virtual void configure_from_cmdline (std::vector< std::string > &cmdline)

Protected Member Functions

 ModuleConfig (const std::string &name)

Protected Attributes

std::unordered_map< std::string, void *const > config_map
std::unordered_map< std::string, void *const > resource_map
std::string module_name
bool resource_discover_finished = false
bool finish_configured = false

Constructor & Destructor Documentation

◆ ModuleConfig()

Realm::ModuleConfig::ModuleConfig ( const std::string & name)
protected

◆ ~ModuleConfig()

virtual Realm::ModuleConfig::~ModuleConfig ( void )
virtual

Member Function Documentation

◆ configure_from_cmdline()

virtual void Realm::ModuleConfig::configure_from_cmdline ( std::vector< std::string > & cmdline)
virtual

◆ finish_configure()

◆ get_name()

const std::string & Realm::ModuleConfig::get_name ( void ) const

◆ get_property()

template<typename T>
RealmStatus Realm::ModuleConfig::get_property ( const std::string & name,
T & value ) const

◆ get_resource()

template<typename T>
RealmStatus Realm::ModuleConfig::get_resource ( const std::string & name,
T & value ) const

◆ set_property()

template<typename T>
RealmStatus Realm::ModuleConfig::set_property ( const std::string & name,
T value )

Member Data Documentation

◆ config_map

std::unordered_map<std::string, void *const> Realm::ModuleConfig::config_map
protected

◆ finish_configured

◆ module_name

std::string Realm::ModuleConfig::module_name
protected

◆ resource_discover_finished

◆ resource_map

std::unordered_map<std::string, void *const> Realm::ModuleConfig::resource_map
protected

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