![]() |
Rosetta Utilities
2014.16.56682
|
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) |
Static Public Member Functions | |
| static ResourceManagerFactory * | get_instance () |
| static function to get the instance of ( pointer to) this singleton class More... | |
Private Types | |
| typedef std::map< std::string, ResourceManagerCreatorOP > | ResourceManagerCreatorsMap |
Private Member Functions | |
| ResourceManagerFactory () | |
Static Private Member Functions | |
| static ResourceManagerFactory * | create_singleton_instance () |
| private singleton creation function to be used with utility::thread::threadsafe_singleton More... | |
Private Attributes | |
| ResourceManagerCreatorsMap | creators_map_ |
Static Private Attributes | |
| static ResourceManagerFactory * | instance_ |
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 |
Referenced by create_singleton_instance().
| 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.
Referenced by basic::resource_manager::ResourceManager::create_singleton_instance().
|
staticprivate |
private singleton creation function to be used with utility::thread::threadsafe_singleton
References ResourceManagerFactory().
Referenced by get_instance().
| void basic::resource_manager::ResourceManagerFactory::factory_register | ( | ResourceManagerCreatorOP | creator | ) |
References creators_map_.
|
static |
static function to get the instance of ( pointer to) this singleton class
References create_singleton_instance(), instance_, and utility::thread::safely_create_singleton().
Referenced by basic::resource_manager::ResourceManager::create_singleton_instance().
|
private |
Referenced by create_resource_manager_from_options_system(), and factory_register().
|
staticprivate |
Referenced by get_instance().
1.8.7