Rosetta  2020.37
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Types | Private Member Functions | Private Attributes | Friends | 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>

Inheritance diagram for basic::resource_manager::ResourceManagerFactory:
Inheritance graph
[legend]

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

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

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.

void basic::resource_manager::ResourceManagerFactory::factory_register ( ResourceManagerCreatorOP  creator)

References CREATE_EXCEPTION, and creators_map_.

Friends And Related Function Documentation

Member Data Documentation

ResourceManagerCreatorsMap basic::resource_manager::ResourceManagerFactory::creators_map_
private

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