Rosetta
Namespaces | Classes | Typedefs | Functions | Variables
basic::resource_manager Namespace Reference

Namespaces

 locator
 

Classes

class  ResourceLoader
 The ResourceLoader is responsible for instantiating a Resource object and initializing it. In order to do so, the ResourceLoader is given an input stream and a XML "Tag" object. The ResourceLoader can also request other Resources from the ResourceManager in trying to construct a particular resource. More...
 
class  ResourceLoaderCreator
 Instantiates a ResourceLoader as part of the ResourceLoaderFactory scheme. Derived classes should be registered with the ResourceLoaderFactory in one of the library init.cc files with a ResourceLoaderRegistrator. More...
 
class  ResourceLoaderFactory
 Instantiates ResourceLoaders. Creators may be registered with the Factory at any point, though it is recommended they be registered at load time. If two Creators are registered and they both give the same name for the ResourceLoader they say they will instantiate, then the Factory will exit with an error message. More...
 
class  ResourceLoaderRegistrator
 The ResourceLoaderRegistrator class is a simple templated registration class that will, at construction, create a ResourceLoader and register it with the ResouceLoaderFactory. More...
 
class  ResourceStream
 The ResourceStream represents an abstract class for packaging up a standard istream so that data that the ResourceLocator needs to deliver to a ResourceLoader can come from arbitrary sources (e.g. from either a file or from a database). More...
 
class  ResourceLocator
 ResourceLocator classes are responsible for retrieving data from a data store that will be used to construct a Resource. This data store could be a file system or a database or any other place where data is stored. More...
 
class  ResourceLocatorCreator
 The ResourceLocatorCreator class serves to link the name of a locator type and the (derived) ResourceLocator class that's responsible for retrieving data from a data store. More...
 
class  ResourceLocatorFactory
 The ResourceLocatorFactory instantiates ResourceLocator objects given their corresponding locator-type strings. It uses the load-time factory registration scheme, meaning that it is a singleton and takes an instance of a Creator object (a ResourceLocatorCreator) in its "factory_register" method. Templated instances of the ResourceLocatorRegistrator classes should be placed in the library init.cc files (e.g. core/init/init.cc or protocols/init/init.ResourceLocatorRegistrators.ihh) More...
 
class  ResourceLocatorRegistrator
 The ResourceLocatorRegistrator gives an instance of a ResourceLocatorCreator to the ResourceLocatorFactory in its constructor, calling the ResourceLocatorFactory's factory_register() method. This call is actually accomplished by the WidgetRegistrator parent class. A single (templated) instance of this class for each ResourceLocatorCreator should be placed in the appropriate init.cc file (i.e. ResourceLocatorCreators that live in the protocols library should be put in src/protocols/init/init.ResourceLocatorRegistrators.ihh). More...
 
class  ResourceManager
 
class  ResourceManagerCreator
 Derived classes will be used by the ResourceManagerFactory to decide which of the various ResourceManagers should be instantiated. The ResourceManager is a singleton, but, different ResourceManagers can be instantiated in different contexts. More...
 
class  ResourceManagerFactory
 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...
 
class  ResourceManagerRegistrator
 The ResourceManagerRegistrator creates an instantiate of the templated ResourceManagerCreator class and gives it to the ResourceManagerFactory. A single instance for each ResourceManagerCreator should be put in the appropriate init.cc file. More...
 

Typedefs

typedef utility::pointer::shared_ptr< ResourceLoaderResourceLoaderOP
 
typedef utility::pointer::shared_ptr< ResourceLoader const > ResourceLoaderCOP
 
typedef utility::pointer::shared_ptr< ResourceLoaderCreatorResourceLoaderCreatorOP
 
typedef utility::pointer::shared_ptr< ResourceLoaderCreator const > ResourceLoaderCreatorCOP
 
typedef utility::pointer::shared_ptr< ResourceStreamResourceStreamOP
 
typedef utility::pointer::shared_ptr< ResourceStream const > ResourceStreamCOP
 
typedef utility::pointer::shared_ptr< ResourceLocatorResourceLocatorOP
 
typedef utility::pointer::shared_ptr< ResourceLocator const > ResourceLocatorCOP
 
typedef utility::pointer::shared_ptr< ResourceLocatorCreatorResourceLocatorCreatorOP
 
typedef utility::pointer::shared_ptr< ResourceLocatorCreator const > ResourceLocatorCreatorCOP
 
typedef utility::pointer::shared_ptr< ResourceManagerResourceManagerOP
 
typedef utility::pointer::shared_ptr< ResourceManager const > ResourceManagerCOP
 
typedef utility::pointer::shared_ptr< ResourceManagerCreatorResourceManagerCreatorOP
 
typedef utility::pointer::shared_ptr< ResourceManagerCreator const > ResourceManagerCreatorCOP
 
typedef utility::VirtualBase Resource
 
typedef utility::VirtualBaseCOP ResourceCOP
 

Functions

void resource_loader_xsd_type_definition_w_attributes (utility::tag::XMLSchemaDefinition &xsd, std::string const &loader_type, std::string const &description, utility::tag::AttributeList const &attributes)
 Define the XML schema definition for a ResourceLoader that contains no subtags but may contain any number of attributes (aka options). More...
 
void resource_loader_xsd_type_definition_w_attributes_and_repeatable_subelements (utility::tag::XMLSchemaDefinition &xsd, std::string const &loader_type, std::string const &description, utility::tag::AttributeList const &attributes, utility::tag::XMLSchemaSimpleSubelementList const &subelements)
 Define the XML schema definition for a ResourceLoader that contains subtags and attributes (aka options). More...
 

Variables

static Tracer TR ("basic.resource_manager.ResourceManager")
 

Typedef Documentation

◆ Resource

◆ ResourceCOP

◆ ResourceLoaderCOP

typedef utility::pointer::shared_ptr< ResourceLoader const > basic::resource_manager::ResourceLoaderCOP

◆ ResourceLoaderCreatorCOP

typedef utility::pointer::shared_ptr< ResourceLoaderCreator const > basic::resource_manager::ResourceLoaderCreatorCOP

◆ ResourceLoaderCreatorOP

◆ ResourceLoaderOP

typedef utility::pointer::shared_ptr< ResourceLoader > basic::resource_manager::ResourceLoaderOP

◆ ResourceLocatorCOP

typedef utility::pointer::shared_ptr< ResourceLocator const > basic::resource_manager::ResourceLocatorCOP

◆ ResourceLocatorCreatorCOP

typedef utility::pointer::shared_ptr< ResourceLocatorCreator const > basic::resource_manager::ResourceLocatorCreatorCOP

◆ ResourceLocatorCreatorOP

◆ ResourceLocatorOP

typedef utility::pointer::shared_ptr< ResourceLocator > basic::resource_manager::ResourceLocatorOP

◆ ResourceManagerCOP

typedef utility::pointer::shared_ptr< ResourceManager const > basic::resource_manager::ResourceManagerCOP

◆ ResourceManagerCreatorCOP

typedef utility::pointer::shared_ptr< ResourceManagerCreator const > basic::resource_manager::ResourceManagerCreatorCOP

◆ ResourceManagerCreatorOP

◆ ResourceManagerOP

typedef utility::pointer::shared_ptr< ResourceManager > basic::resource_manager::ResourceManagerOP

◆ ResourceStreamCOP

typedef utility::pointer::shared_ptr< ResourceStream const > basic::resource_manager::ResourceStreamCOP

◆ ResourceStreamOP

typedef utility::pointer::shared_ptr< ResourceStream > basic::resource_manager::ResourceStreamOP

Function Documentation

◆ resource_loader_xsd_type_definition_w_attributes()

void basic::resource_manager::resource_loader_xsd_type_definition_w_attributes ( utility::tag::XMLSchemaDefinition xsd,
std::string const &  loader_type,
std::string const &  description,
utility::tag::AttributeList const &  attributes 
)

◆ resource_loader_xsd_type_definition_w_attributes_and_repeatable_subelements()

void basic::resource_manager::resource_loader_xsd_type_definition_w_attributes_and_repeatable_subelements ( utility::tag::XMLSchemaDefinition xsd,
std::string const &  loader_type,
std::string const &  description,
utility::tag::AttributeList const &  attributes,
utility::tag::XMLSchemaSimpleSubelementList const &  subelements 
)

Variable Documentation

◆ TR

Tracer basic::resource_manager::TR("basic.resource_manager.ResourceManager") ( "basic.resource_manager.ResourceManager"  )
static