Tesseract
Motion Planning Environment
|
Abstract class for resource loaders. More...
#include <resource_locator.h>
Public Types | |
using | Ptr = std::shared_ptr< ResourceLocator > |
using | ConstPtr = std::shared_ptr< const ResourceLocator > |
Public Member Functions | |
virtual | ~ResourceLocator ()=default |
virtual std::shared_ptr< Resource > | locateResource (const std::string &url) const =0 |
Locate a resource based on a URL. More... | |
bool | operator== (const ResourceLocator &rhs) const |
bool | operator!= (const ResourceLocator &rhs) const |
Private Member Functions | |
template<class Archive > | |
void | serialize (Archive &ar, const unsigned int version) |
Friends | |
class | boost::serialization::access |
Abstract class for resource loaders.
using tesseract_common::ResourceLocator::ConstPtr = std::shared_ptr<const ResourceLocator> |
using tesseract_common::ResourceLocator::Ptr = std::shared_ptr<ResourceLocator> |
|
virtualdefault |
|
pure virtual |
Locate a resource based on a URL.
url | The URL of the resource |
Implemented in tesseract_common::GeneralResourceLocator, tesseract_common::SimpleLocatedResource, tesseract_common::BytesResource, TestResourceLocator, TempResourceLocator, and tesseract_common::TesseractSupportResourceLocator.
bool tesseract_common::ResourceLocator::operator!= | ( | const ResourceLocator & | rhs | ) | const |
bool tesseract_common::ResourceLocator::operator== | ( | const ResourceLocator & | rhs | ) | const |
|
private |
|
friend |