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

Abstract class for resource loaders. More...

#include <tesseract_support_resource_locator.h>

Inheritance diagram for tesseract_common::TesseractSupportResourceLocator:
Inheritance graph
[legend]
Collaboration diagram for tesseract_common::TesseractSupportResourceLocator:
Collaboration graph
[legend]

Public Types

using Ptr = std::shared_ptr< TesseractSupportResourceLocator >
 
using ConstPtr = std::shared_ptr< const TesseractSupportResourceLocator >
 
- Public Types inherited from tesseract_common::ResourceLocator
using Ptr = std::shared_ptr< ResourceLocator >
 
using ConstPtr = std::shared_ptr< const ResourceLocator >
 

Public Member Functions

std::shared_ptr< ResourcelocateResource (const std::string &url) const override final
 Locate a resource based on a URL. More...
 
- Public Member Functions inherited from tesseract_common::ResourceLocator
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

Member Function Documentation

◆ locateResource()

std::shared_ptr< Resource > tesseract_common::TesseractSupportResourceLocator::locateResource ( const std::string &  url) const
finaloverridevirtual

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

Implements tesseract_common::ResourceLocator.

◆ serialize()

template<class Archive >
void tesseract_common::TesseractSupportResourceLocator::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: