![]() |
Rosetta Utilities
2014.35
|
#include <NativeFallbackConfiguration.hh>
Public Types | |
typedef basic::resource_manager::ResourceDescription | ResourceDescription |
![]() | |
typedef platform::Size | Size |
typedef platform::Size | size_type |
Public Member Functions | |
NativeFallbackConfiguration () | |
virtual bool | fallback_specified (ResourceDescription const &desc) const |
Return true if a fallback been provided for the given resource description. It is possible that the fallback configuration would be unable to deliver a requested resource, e.g. if the appropriate command line option has not been provided. More... | |
virtual basic::resource_manager::LoaderType | get_resource_loader (ResourceDescription const &desc) const |
Return the name of the resource loader that should be used to instantiate the desired resource. More... | |
virtual basic::resource_manager::LocatorID | get_locator_id (ResourceDescription const &desc) const |
Return the locator id that the resource locator should use to find the data used to construct the desired resource - e.g. the file name. More... | |
virtual basic::resource_manager::ResourceOptionsOP | get_resource_options (ResourceDescription const &desc) const |
Return a pointer to the ResourceOptions object that the ResourceLoader will use to instantiate the given resource. Return 0 if the default ResourceOptions specified by the appropriate ResourceLoader should be used. More... | |
virtual std::string | could_not_create_resource_error_message (ResourceDescription const &desc) const |
If the FallbackConfiguration has not been provided the appropriate set of command line flags needed to construct the Resource given the resource description, then return an error message informing the user what options must be provided on the command line. More... | |
![]() | |
FallbackConfiguration () | |
Default constructor for the FallbackConfiguration initializes nothing. More... | |
virtual | ~FallbackConfiguration () |
Destructor for the FallbackConfiguration does nothing. More... | |
![]() | |
void | ctor () |
virtual | ~ReferenceCount () |
Destructor. More... | |
Size | ref_count () const |
Reference count. More... | |
Private Member Functions | |
basic::resource_manager::LocatorID | get_native_filename_from_options () const |
Additional Inherited Members | |
![]() | |
ReferenceCount () | |
Default constructor. More... | |
ReferenceCount (ReferenceCount const &) | |
Copy constructor. More... | |
ReferenceCount & | operator= (ReferenceCount const &) |
Copy assignment. More... | |
typedef basic::resource_manager::ResourceDescription basic::resource_manager::fallback_configuration::NativeFallbackConfiguration::ResourceDescription |
basic::resource_manager::fallback_configuration::NativeFallbackConfiguration::NativeFallbackConfiguration | ( | ) |
|
virtual |
If the FallbackConfiguration has not been provided the appropriate set of command line flags needed to construct the Resource given the resource description, then return an error message informing the user what options must be provided on the command line.
Implements basic::resource_manager::FallbackConfiguration.
|
virtual |
Return true if a fallback been provided for the given resource description. It is possible that the fallback configuration would be unable to deliver a requested resource, e.g. if the appropriate command line option has not been provided.
Implements basic::resource_manager::FallbackConfiguration.
References basic::options::OptionKeys::in::file::native, option, and options.
|
virtual |
Return the locator id that the resource locator should use to find the data used to construct the desired resource - e.g. the file name.
Implements basic::resource_manager::FallbackConfiguration.
References get_native_filename_from_options().
|
private |
References basic::options::OptionKeys::in::file::native, option, and options.
Referenced by get_locator_id().
|
virtual |
Return the name of the resource loader that should be used to instantiate the desired resource.
Implements basic::resource_manager::FallbackConfiguration.
|
virtual |
Return a pointer to the ResourceOptions object that the ResourceLoader will use to instantiate the given resource. Return 0 if the default ResourceOptions specified by the appropriate ResourceLoader should be used.
Implements basic::resource_manager::FallbackConfiguration.