Rosetta
3.8
|
A factory class for managing the instantiation of the singleton ResourceManager: only one of the various derived classes will be instantiated. Currently, it asks for the JD2ResourceManager; in the future, this should be fixed so that it reads from the options system to figure out which ResourceManager to instantiate. More...
#include <ResourceManagerFactory.hh>
Public Member Functions | |
ResourceManager * | create_resource_manager_from_options_system () const |
Should only be called by the ResourceManager in its singleton construction! More... | |
void | factory_register (ResourceManagerCreatorOP creator) |
Public Member Functions inherited from utility::SingletonBase< ResourceManagerFactory > | |
SingletonBase () | |
public constructor (the derived class must have a private constructor, of course). More... | |
Private Types | |
typedef std::map< std::string, ResourceManagerCreatorOP > | ResourceManagerCreatorsMap |
Private Member Functions | |
ResourceManagerFactory () | |
Private Attributes | |
ResourceManagerCreatorsMap | creators_map_ |
Friends | |
class | utility::SingletonBase< ResourceManagerFactory > |
Additional Inherited Members | |
Static Public Member Functions inherited from utility::SingletonBase< ResourceManagerFactory > | |
static ResourceManagerFactory * | get_instance () |
Safely instantiate a singleton class in a (possibly) multithreaded context. More... | |
A factory class for managing the instantiation of the singleton ResourceManager: only one of the various derived classes will be instantiated. Currently, it asks for the JD2ResourceManager; in the future, this should be fixed so that it reads from the options system to figure out which ResourceManager to instantiate.
|
private |
|
private |
ResourceManager * basic::resource_manager::ResourceManagerFactory::create_resource_manager_from_options_system | ( | ) | const |
Should only be called by the ResourceManager in its singleton construction!
References creators_map_, and utility_exit_with_message.
void basic::resource_manager::ResourceManagerFactory::factory_register | ( | ResourceManagerCreatorOP | creator | ) |
References creators_map_.
|
friend |
|
private |
Referenced by create_resource_manager_from_options_system(), and factory_register().