Tesseract
Motion Planning Environment
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
TestResourceLocator Class Reference

Resource locator implementation using a provided function to locate file resources. More...

Inheritance diagram for TestResourceLocator:
Inheritance graph
[legend]
Collaboration diagram for TestResourceLocator:
Collaboration graph
[legend]

Public Types

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

Public Member Functions

 ~TestResourceLocator () override=default
 
tesseract_common::Resource::Ptr locateResource (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
 

Detailed Description

Resource locator implementation using a provided function to locate file resources.

Member Typedef Documentation

◆ ConstPtr

using TestResourceLocator::ConstPtr = std::shared_ptr<const TestResourceLocator>

◆ Ptr

Constructor & Destructor Documentation

◆ ~TestResourceLocator()

TestResourceLocator::~TestResourceLocator ( )
overridedefault

Member Function Documentation

◆ locateResource()

tesseract_common::Resource::Ptr TestResourceLocator::locateResource ( const std::string &  url) const
inlinefinaloverridevirtual

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.


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