Tesseract
Motion Planning Environment
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Private Member Functions | Friends | List of all members
tesseract_common::ResourceLocator Class Referenceabstract

Abstract class for resource loaders. More...

#include <resource_locator.h>

Inheritance diagram for tesseract_common::ResourceLocator:
Inheritance graph
[legend]

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< ResourcelocateResource (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
 

Detailed Description

Abstract class for resource loaders.

Member Typedef Documentation

◆ ConstPtr

◆ Ptr

Constructor & Destructor Documentation

◆ ~ResourceLocator()

virtual tesseract_common::ResourceLocator::~ResourceLocator ( )
virtualdefault

Member Function Documentation

◆ locateResource()

virtual std::shared_ptr< Resource > tesseract_common::ResourceLocator::locateResource ( const std::string &  url) const
pure virtual

Locate a resource based on a URL.

Parameters
urlThe URL of the resource
Returns
A shared pointer to a Resource instance, or nullptr if not found

Implemented in tesseract_common::GeneralResourceLocator, tesseract_common::SimpleLocatedResource, tesseract_common::BytesResource, TestResourceLocator, TempResourceLocator, and tesseract_common::TesseractSupportResourceLocator.

◆ operator!=()

bool tesseract_common::ResourceLocator::operator!= ( const ResourceLocator rhs) const

◆ operator==()

bool tesseract_common::ResourceLocator::operator== ( const ResourceLocator rhs) const

◆ serialize()

template<class Archive >
void tesseract_common::ResourceLocator::serialize ( Archive &  ar,
const unsigned int  version 
)
private

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

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