Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
protocols::jd2::JD2ResourceManager Class Reference

#include <JD2ResourceManager.hh>

Inheritance diagram for protocols::jd2::JD2ResourceManager:
Inheritance graph
[legend]
Collaboration diagram for protocols::jd2::JD2ResourceManager:
Collaboration graph
[legend]

Public Member Functions

virtual void clear ()
 
virtual ~JD2ResourceManager ()
 
basic::resource_manager::ResourceOP get_resource (basic::resource_manager::ResourceDescription const &resource_description)
 
bool has_resource_with_description (basic::resource_manager::ResourceDescription const &resource_description)
 
void read_resource_locators_tags (utility::tag::TagPtr tags)
 
void read_resource_options_tags (utility::tag::TagPtr tags)
 
void read_resources_tags (utility::tag::TagPtr tags)
 
virtual bool get_option (utility::options::BooleanOptionKey key) const
 
virtual utility::vector1< bool >
const & 
get_option (utility::options::BooleanVectorOptionKey key) const
 
virtual
utility::file::FileName const & 
get_option (utility::options::FileOptionKey key) const
 
virtual utility::vector1
< utility::file::FileName >
const & 
get_option (utility::options::FileVectorOptionKey key) const
 
virtual int get_option (utility::options::IntegerOptionKey key) const
 
virtual utility::vector1< int >
const & 
get_option (utility::options::IntegerVectorOptionKey key) const
 
virtual
utility::file::PathName const & 
get_option (utility::options::PathOptionKey key) const
 
virtual utility::vector1
< utility::file::PathName >
const & 
get_option (utility::options::PathVectorOptionKey key) const
 
virtual platform::Real get_option (utility::options::RealOptionKey key) const
 
virtual utility::vector1
< platform::Real > const & 
get_option (utility::options::RealVectorOptionKey key) const
 
virtual std::string const & get_option (utility::options::StringOptionKey key) const
 
virtual utility::vector1
< std::string > const & 
get_option (utility::options::StringVectorOptionKey key) const
 
virtual bool has_option (utility::options::BooleanOptionKey key) const
 
virtual bool has_option (utility::options::BooleanVectorOptionKey key) const
 
virtual bool has_option (utility::options::FileOptionKey key) const
 
virtual bool has_option (utility::options::FileVectorOptionKey key) const
 
virtual bool has_option (utility::options::IntegerOptionKey key) const
 
virtual bool has_option (utility::options::IntegerVectorOptionKey key) const
 
virtual bool has_option (utility::options::PathOptionKey key) const
 
virtual bool has_option (utility::options::PathVectorOptionKey key) const
 
virtual bool has_option (utility::options::RealOptionKey key) const
 
virtual bool has_option (utility::options::RealVectorOptionKey key) const
 
virtual bool has_option (utility::options::StringOptionKey key) const
 
virtual bool has_option (utility::options::StringVectorOptionKey key) const
 

Static Public Member Functions

static JD2ResourceManagerget_jd2_resource_manager_instance ()
 

Protected Member Functions

 JD2ResourceManager ()
 

Private Member Functions

void read_resource_options_table_tag (utility::tag::TagPtr tag)
 
void read_resource_option_item (utility::tag::TagPtr tag)
 
void check_resource_loader_type (basic::resource_manager::LoaderType const &loader_type)
 Check if the loader type is defined with the ResourceLoaderFactory More...
 
basic::resource_manager::ResourceTag read_resource_tag_item (utility::tag::TagPtr tags, basic::resource_manager::LoaderType const &loader_type, basic::resource_manager::LocatorID const &locator_id)
 
void read_resource_table_tag (utility::tag::TagPtr tags)
 
basic::resource_manager::LocatorTag read_resource_locator_items (utility::tag::TagPtr tags, basic::resource_manager::LoaderType const &loader_type, basic::resource_manager::LocatorID &locator_id)
 find the LocatorTag item from the resource tag. Based on the LocatorTag fill the LocatorID. locator item (&string): FileSystemResourceLocator (default) More...
 
basic::resource_manager::ResourceOptionsTag read_resource_options_tag_item (utility::tag::TagPtr tags, basic::resource_manager::LoaderType const &loader_type, basic::resource_manager::ResourceTag const &resource_tag)
 
basic::resource_manager::ResourceOP create_resource_from_fallback (basic::resource_manager::FallbackConfigurationCOP fallback, basic::resource_manager::ResourceDescription const &resource_description)
 

Private Attributes

std::map< std::string,
std::string > 
fallback_resource_descriptions_created_
 

Friends

class JD2ResourceManagerCreator
 

Constructor & Destructor Documentation

protocols::jd2::JD2ResourceManager::JD2ResourceManager ( )
protected
protocols::jd2::JD2ResourceManager::~JD2ResourceManager ( )
virtual

Member Function Documentation

void protocols::jd2::JD2ResourceManager::check_resource_loader_type ( basic::resource_manager::LoaderType const &  loader_type)
private

Check if the loader type is defined with the ResourceLoaderFactory

Referenced by read_resource_table_tag(), and read_resources_tags().

void protocols::jd2::JD2ResourceManager::clear ( )
virtual
basic::resource_manager::ResourceOP protocols::jd2::JD2ResourceManager::create_resource_from_fallback ( basic::resource_manager::FallbackConfigurationCOP  fallback,
basic::resource_manager::ResourceDescription const &  resource_description 
)
private

Referenced by get_resource().

JD2ResourceManager * protocols::jd2::JD2ResourceManager::get_jd2_resource_manager_instance ( )
static
bool protocols::jd2::JD2ResourceManager::get_option ( utility::options::BooleanOptionKey  key) const
virtual
utility::vector1< bool > const & protocols::jd2::JD2ResourceManager::get_option ( utility::options::BooleanVectorOptionKey  key) const
virtual
utility::file::FileName const & protocols::jd2::JD2ResourceManager::get_option ( utility::options::FileOptionKey  key) const
virtual
utility::vector1< utility::file::FileName > const & protocols::jd2::JD2ResourceManager::get_option ( utility::options::FileVectorOptionKey  key) const
virtual
int protocols::jd2::JD2ResourceManager::get_option ( utility::options::IntegerOptionKey  key) const
virtual
utility::vector1< int > const & protocols::jd2::JD2ResourceManager::get_option ( utility::options::IntegerVectorOptionKey  key) const
virtual
utility::file::PathName const & protocols::jd2::JD2ResourceManager::get_option ( utility::options::PathOptionKey  key) const
virtual
utility::vector1< utility::file::PathName > const & protocols::jd2::JD2ResourceManager::get_option ( utility::options::PathVectorOptionKey  key) const
virtual
platform::Real protocols::jd2::JD2ResourceManager::get_option ( utility::options::RealOptionKey  key) const
virtual
utility::vector1< platform::Real > const & protocols::jd2::JD2ResourceManager::get_option ( utility::options::RealVectorOptionKey  key) const
virtual
std::string const & protocols::jd2::JD2ResourceManager::get_option ( utility::options::StringOptionKey  key) const
virtual
utility::vector1< std::string > const & protocols::jd2::JD2ResourceManager::get_option ( utility::options::StringVectorOptionKey  key) const
virtual
ResourceOP protocols::jd2::JD2ResourceManager::get_resource ( basic::resource_manager::ResourceDescription const &  resource_description)
bool protocols::jd2::JD2ResourceManager::has_option ( utility::options::BooleanOptionKey  key) const
virtual
bool protocols::jd2::JD2ResourceManager::has_option ( utility::options::BooleanVectorOptionKey  key) const
virtual
bool protocols::jd2::JD2ResourceManager::has_option ( utility::options::FileOptionKey  key) const
virtual
bool protocols::jd2::JD2ResourceManager::has_option ( utility::options::FileVectorOptionKey  key) const
virtual
bool protocols::jd2::JD2ResourceManager::has_option ( utility::options::IntegerOptionKey  key) const
virtual
bool protocols::jd2::JD2ResourceManager::has_option ( utility::options::IntegerVectorOptionKey  key) const
virtual
bool protocols::jd2::JD2ResourceManager::has_option ( utility::options::PathOptionKey  key) const
virtual
bool protocols::jd2::JD2ResourceManager::has_option ( utility::options::PathVectorOptionKey  key) const
virtual
bool protocols::jd2::JD2ResourceManager::has_option ( utility::options::RealOptionKey  key) const
virtual
bool protocols::jd2::JD2ResourceManager::has_option ( utility::options::RealVectorOptionKey  key) const
virtual
bool protocols::jd2::JD2ResourceManager::has_option ( utility::options::StringOptionKey  key) const
virtual
bool protocols::jd2::JD2ResourceManager::has_option ( utility::options::StringVectorOptionKey  key) const
virtual
bool protocols::jd2::JD2ResourceManager::has_resource_with_description ( basic::resource_manager::ResourceDescription const &  resource_description)
LocatorTag protocols::jd2::JD2ResourceManager::read_resource_locator_items ( utility::tag::TagPtr  tags,
basic::resource_manager::LoaderType const &  loader_type,
basic::resource_manager::LocatorID &  locator_id 
)
private

find the LocatorTag item from the resource tag. Based on the LocatorTag fill the LocatorID. locator item (&string): FileSystemResourceLocator (default)

- file item is interchangable with the locatorID item

locatorID item (&string):

Referenced by read_resources_tags().

void protocols::jd2::JD2ResourceManager::read_resource_locators_tags ( utility::tag::TagPtr  tags)

instantiate all the resource locators given in the input tags, and put them into the base class. Make sure no two resource locators share a common name.

Referenced by protocols::jd2::JD2ResourceManagerJobInputter::fill_jobs_from_stream().

void protocols::jd2::JD2ResourceManager::read_resource_option_item ( utility::tag::TagPtr  tag)
private
void protocols::jd2::JD2ResourceManager::read_resource_options_table_tag ( utility::tag::TagPtr  tag)
private
ResourceOptionsTag protocols::jd2::JD2ResourceManager::read_resource_options_tag_item ( utility::tag::TagPtr  tags,
basic::resource_manager::LoaderType const &  loader_type,
basic::resource_manager::ResourceTag const &  resource_tag 
)
private

Referenced by read_resources_tags().

void protocols::jd2::JD2ResourceManager::read_resource_options_tags ( utility::tag::TagPtr  tags)

instantiate all the resource options and put them in the base class. Make sure no two resource options are given the same name.

References read_resource_option_item(), and read_resource_options_table_tag().

Referenced by protocols::jd2::JD2ResourceManagerJobInputter::fill_jobs_from_stream().

void protocols::jd2::JD2ResourceManager::read_resource_table_tag ( utility::tag::TagPtr  tags)
private
ResourceTag protocols::jd2::JD2ResourceManager::read_resource_tag_item ( utility::tag::TagPtr  tags,
basic::resource_manager::LoaderType const &  loader_type,
basic::resource_manager::LocatorID const &  locator_id 
)
private

make sure the resource object has been given a tag and that no other resource object has been delecared with the same name.

Referenced by read_resources_tags().

void protocols::jd2::JD2ResourceManager::read_resources_tags ( utility::tag::TagPtr  tags)

read through all the resources, and put them into the base class for later instantiation. Make sure each resource is named, that it is the only resource that has been declared with this name, and that

References check_resource_loader_type(), read_resource_locator_items(), read_resource_options_tag_item(), read_resource_table_tag(), and read_resource_tag_item().

Referenced by protocols::jd2::JD2ResourceManagerJobInputter::fill_jobs_from_stream().

Friends And Related Function Documentation

friend class JD2ResourceManagerCreator
friend

Member Data Documentation

std::map< std::string, std::string > protocols::jd2::JD2ResourceManager::fallback_resource_descriptions_created_
private

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