The modules directory used by the constructors of the providers to build themselves. More...
#include <moduleDirectory.hpp>
Public Types | |
typedef std::list < SimpleBuilder * > ::const_iterator | simpleBuilder_iterator |
typedef std::list < ConfiguredBuilder * > ::const_iterator | configuredBuilder_iterator |
Public Member Functions | |
ModulesDirectory (const std::string &confDir_) | |
Constructor. More... | |
~ModulesDirectory () | |
bool | addBuilder (ConfiguredBuilder *builder) |
Add a configured builder to the directory. More... | |
bool | addBuilder (SimpleBuilder *builder) |
Add a simple builder (builder for objects without configuration) to the directory. More... | |
ConfiguredBuilder * | getBuilder (const std::string §ion, const std::string &keyword) const |
Get the builder for the configuration section, keyword pair. More... | |
ConfiguredBuilder * | getBuilder (const std::string &objectClassName) const |
Get the builder for the specified object class name. More... | |
simpleBuilder_iterator | simpleBuilderObjectsBegin () const |
simpleBuilder_iterator | simpleBuilderObjectsEnd () const |
configuredBuilder_iterator | configuredBuilderObjectsBegin () const |
configuredBuilder_iterator | configuredBuilderObjectsEnd () const |
std::vector< std::pair < std::string, std::string > > | getConfigurableSectionKeywords (ObjectConstructorBase::ObjectType objtype) const |
Get a selected list of configurable objects loaded as tuple (section,keyword) More... | |
std::string | getAbsoluteModulePath (const std::string &moduleName, const std::string &configuredDirectory, bool useDefaultModuleDir=true) const |
Get the absolute path of a module. More... | |
bool | loadModules (const std::list< std::string > &modFiles) |
Load the list of modules specified by their absolute path. More... | |
Private Attributes | |
std::string | m_confDir |
configuration directory needed as base for calculating the absolute path of a module More... | |
std::list< ConfiguredBuilder * > | m_cfgdBuilder |
list of configurable builders More... | |
std::list< SimpleBuilder * > | m_simpleBuilder |
list of simple builders More... | |
The modules directory used by the constructors of the providers to build themselves.
typedef std::list<ConfiguredBuilder*>::const_iterator _Wolframe::module::ModulesDirectory::configuredBuilder_iterator |
typedef std::list<SimpleBuilder*>::const_iterator _Wolframe::module::ModulesDirectory::simpleBuilder_iterator |
|
inlineexplicit |
Constructor.
[in] | confDir_ | Configuration directory that specifies the relative path where to load the modules from if not specified by the system or explicitely |
_Wolframe::module::ModulesDirectory::~ModulesDirectory | ( | ) |
bool _Wolframe::module::ModulesDirectory::addBuilder | ( | ConfiguredBuilder * | builder | ) |
Add a configured builder to the directory.
bool _Wolframe::module::ModulesDirectory::addBuilder | ( | SimpleBuilder * | builder | ) |
Add a simple builder (builder for objects without configuration) to the directory.
|
inline |
|
inline |
std::string _Wolframe::module::ModulesDirectory::getAbsoluteModulePath | ( | const std::string & | moduleName, |
const std::string & | configuredDirectory, | ||
bool | useDefaultModuleDir = true |
||
) | const |
Get the absolute path of a module.
param[in] moduleName name of the module to resolve param[in] configuredDirectory not expanded name of directory configured as "directory" in the "LoadModules" section of the configuration param[in] useDefaultModuleDir wheter to load modules from the default system module dir (only test programs may not do so)
ConfiguredBuilder* _Wolframe::module::ModulesDirectory::getBuilder | ( | const std::string & | section, |
const std::string & | keyword | ||
) | const |
Get the builder for the configuration section, keyword pair.
[in] | section | the section (parent) of the configuration |
[in] | keyword | the keyword in the section |
ConfiguredBuilder* _Wolframe::module::ModulesDirectory::getBuilder | ( | const std::string & | objectClassName | ) | const |
Get the builder for the specified object class name.
std::vector<std::pair<std::string,std::string> > _Wolframe::module::ModulesDirectory::getConfigurableSectionKeywords | ( | ObjectConstructorBase::ObjectType | objtype | ) | const |
Get a selected list of configurable objects loaded as tuple (section,keyword)
[in] | objtype | type of the configurable objects to select |
bool _Wolframe::module::ModulesDirectory::loadModules | ( | const std::list< std::string > & | modFiles | ) |
Load the list of modules specified by their absolute path.
param[in] modFiles list of modules to load into this structure
|
inline |
|
inline |
|
private |
list of configurable builders
|
private |
configuration directory needed as base for calculating the absolute path of a module
|
private |
list of simple builders
Copyright © 2014 - Project Wolframe - All Rights Reserved