33 #ifndef DART_UTILS_COMPOSITERESOURCERETRIEVER_HPP_
34 #define DART_UTILS_COMPOSITERESOURCERETRIEVER_HPP_
36 #include <unordered_map>
66 const std::string& _schema,
82 std::unordered_map<std::string,
88 = std::shared_ptr<CompositeResourceRetriever>;
ResourceRetriever provides methods for testing for the existance of and accessing the content of a re...
Definition: ResourceRetriever.hpp:47
CompositeResourceRetriever allows multiple ResourceRetriever to be used interchangably by: (1) associ...
Definition: CompositeResourceRetriever.hpp:48
bool addSchemaRetriever(const std::string &_schema, const common::ResourceRetrieverPtr &_resourceRetriever)
Add a default ResourceRetriever for _schema This ResourceRetriever will be called after URIs that mat...
Definition: CompositeResourceRetriever.cpp:49
std::string getFilePath(const common::Uri &uri) override
Returns absolute file path to uri; an empty string if unavailable.
Definition: CompositeResourceRetriever.cpp:104
void addDefaultRetriever(const common::ResourceRetrieverPtr &_resourceRetriever)
Add a default ResourceRetriever for all URIs.
Definition: CompositeResourceRetriever.cpp:42
std::unordered_map< std::string, std::vector< common::ResourceRetrieverPtr > > mResourceRetrievers
Definition: CompositeResourceRetriever.hpp:83
virtual ~CompositeResourceRetriever()=default
std::vector< common::ResourceRetrieverPtr > mDefaultResourceRetrievers
Definition: CompositeResourceRetriever.hpp:84
bool exists(const common::Uri &_uri) override
Returns whether the resource specified by a URI exists.
Definition: CompositeResourceRetriever.cpp:73
common::ResourcePtr retrieve(const common::Uri &_uri) override
Returns the resource specified by a URI or nullptr on failure.
Definition: CompositeResourceRetriever.cpp:85
std::vector< common::ResourceRetrieverPtr > getRetrievers(const common::Uri &_uri) const
Definition: CompositeResourceRetriever.cpp:118
std::shared_ptr< Resource > ResourcePtr
Definition: Resource.hpp:88
std::shared_ptr< ResourceRetriever > ResourceRetrieverPtr
Definition: ResourceRetriever.hpp:76
std::shared_ptr< CompositeResourceRetriever > CompositeResourceRetrieverPtr
Definition: CompositeResourceRetriever.hpp:88
Definition: BulletCollisionDetector.cpp:63
The Uri struct provides URI parsing and merging functionality based on RFC 3986.
Definition: Uri.hpp:87