Rosetta Utilities  2014.35
Public Member Functions | Static Public Member Functions | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
basic::resource_manager::ResourceManagerFactory Class Reference

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

ResourceManagercreate_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 ResourceManagerFactoryget_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 ResourceManagerFactorycreate_singleton_instance ()
 private singleton creation function to be used with utility::thread::threadsafe_singleton More...
 

Private Attributes

ResourceManagerCreatorsMap creators_map_
 

Static Private Attributes

static ResourceManagerFactoryinstance_
 

Detailed Description

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.

Member Typedef Documentation

Constructor & Destructor Documentation

basic::resource_manager::ResourceManagerFactory::ResourceManagerFactory ( )
private

Member Function Documentation

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().

ResourceManagerFactory * basic::resource_manager::ResourceManagerFactory::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_.

ResourceManagerFactory * basic::resource_manager::ResourceManagerFactory::get_instance ( )
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().

Member Data Documentation

ResourceManagerCreatorsMap basic::resource_manager::ResourceManagerFactory::creators_map_
private
ResourceManagerFactory * basic::resource_manager::ResourceManagerFactory::instance_
staticprivate

Referenced by get_instance().


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