Rosetta
|
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< ResourceLoader > | ResourceLoaderOP |
typedef utility::pointer::shared_ptr< ResourceLoader const > | ResourceLoaderCOP |
typedef utility::pointer::shared_ptr< ResourceLoaderCreator > | ResourceLoaderCreatorOP |
typedef utility::pointer::shared_ptr< ResourceLoaderCreator const > | ResourceLoaderCreatorCOP |
typedef utility::pointer::shared_ptr< ResourceStream > | ResourceStreamOP |
typedef utility::pointer::shared_ptr< ResourceStream const > | ResourceStreamCOP |
typedef utility::pointer::shared_ptr< ResourceLocator > | ResourceLocatorOP |
typedef utility::pointer::shared_ptr< ResourceLocator const > | ResourceLocatorCOP |
typedef utility::pointer::shared_ptr< ResourceLocatorCreator > | ResourceLocatorCreatorOP |
typedef utility::pointer::shared_ptr< ResourceLocatorCreator const > | ResourceLocatorCreatorCOP |
typedef utility::pointer::shared_ptr< ResourceManager > | ResourceManagerOP |
typedef utility::pointer::shared_ptr< ResourceManager const > | ResourceManagerCOP |
typedef utility::pointer::shared_ptr< ResourceManagerCreator > | ResourceManagerCreatorOP |
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 utility::pointer::shared_ptr< ResourceLoader const > basic::resource_manager::ResourceLoaderCOP |
typedef utility::pointer::shared_ptr< ResourceLoaderCreator const > basic::resource_manager::ResourceLoaderCreatorCOP |
typedef utility::pointer::shared_ptr< ResourceLoaderCreator > basic::resource_manager::ResourceLoaderCreatorOP |
typedef utility::pointer::shared_ptr< ResourceLoader > basic::resource_manager::ResourceLoaderOP |
typedef utility::pointer::shared_ptr< ResourceLocator const > basic::resource_manager::ResourceLocatorCOP |
typedef utility::pointer::shared_ptr< ResourceLocatorCreator const > basic::resource_manager::ResourceLocatorCreatorCOP |
typedef utility::pointer::shared_ptr< ResourceLocatorCreator > basic::resource_manager::ResourceLocatorCreatorOP |
typedef utility::pointer::shared_ptr< ResourceLocator > basic::resource_manager::ResourceLocatorOP |
typedef utility::pointer::shared_ptr< ResourceManager const > basic::resource_manager::ResourceManagerCOP |
typedef utility::pointer::shared_ptr< ResourceManagerCreator const > basic::resource_manager::ResourceManagerCreatorCOP |
typedef utility::pointer::shared_ptr< ResourceManagerCreator > basic::resource_manager::ResourceManagerCreatorOP |
typedef utility::pointer::shared_ptr< ResourceManager > basic::resource_manager::ResourceManagerOP |
typedef utility::pointer::shared_ptr< ResourceStream const > basic::resource_manager::ResourceStreamCOP |
typedef utility::pointer::shared_ptr< ResourceStream > basic::resource_manager::ResourceStreamOP |
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 | ||
) |
Define the XML schema definition for a ResourceLoader that contains no subtags but may contain any number of attributes (aka options).
References utility::tag::XMLSchemaComplexTypeGenerator::add_attributes(), utility::tag::attribute_w_name_in_attribute_list(), basic::resource_manager::ResourceLoaderFactory::complex_type_name_for_loader(), utility::tag::XMLSchemaComplexTypeGenerator::complex_type_naming_func(), utility::tag::XMLSchemaComplexTypeGenerator::description(), utility::tag::XMLSchemaComplexTypeGenerator::element_name(), utility::tag::optional_name_attribute(), and utility::tag::XMLSchemaComplexTypeGenerator::write_complex_type_to_schema().
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 | ||
) |
Define the XML schema definition for a ResourceLoader that contains subtags and attributes (aka options).
References utility::tag::XMLSchemaComplexTypeGenerator::add_attributes(), utility::tag::attribute_w_name_in_attribute_list(), basic::resource_manager::ResourceLoaderFactory::complex_type_name_for_loader(), utility::tag::XMLSchemaComplexTypeGenerator::complex_type_naming_func(), utility::tag::XMLSchemaComplexTypeGenerator::description(), utility::tag::XMLSchemaComplexTypeGenerator::element_name(), utility::tag::optional_name_attribute(), utility::tag::XMLSchemaComplexTypeGenerator::set_subelements_repeatable(), and utility::tag::XMLSchemaComplexTypeGenerator::write_complex_type_to_schema().
|
static |