![]() |
Tesseract 0.28.4
|
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 std::shared_ptr< Resource > | locateResource (const std::string &url) const =0 |
| Locate a resource based on a URL. | |
| bool | operator== (const ResourceLocator &rhs) const |
| bool | operator!= (const ResourceLocator &rhs) const |
Abstract class for resource loaders.
|
pure virtual |
Locate a resource based on a URL.
| url | The URL of the resource |
Implemented in tesseract::common::BytesResource, tesseract::common::GeneralResourceLocator, and tesseract::common::SimpleLocatedResource.