Tesseract 0.28.4
Loading...
Searching...
No Matches
resource_locator.h File Reference

Locate and retrieve resource data. More...

#include <tesseract/common/macros.h>
#include <functional>
#include <memory>
#include <string>
#include <unordered_map>
#include <vector>
#include <filesystem>

Classes

class  tesseract::common::ResourceLocator
 Abstract class for resource loaders. More...
 
class  tesseract::common::GeneralResourceLocator
 A general resource loaders using environment variable. More...
 
class  tesseract::common::Resource
 Represents resource data available from a file or url. More...
 
class  tesseract::common::SimpleLocatedResource
 Resource implementation for a local file. More...
 
class  tesseract::common::BytesResource
 

Typedefs

using tesseract::common::SimpleResourceLocatorFn = std::function< std::string(const std::string &)>
 

Functions

template<class Archive >
void tesseract::common::serialize (Archive &, Resource &)
 
template<class Archive >
void tesseract::common::serialize (Archive &, GeneralResourceLocator &)
 
template<class Archive >
void tesseract::common::serialize (Archive &ar, SimpleLocatedResource &obj)
 
template<class Archive >
void tesseract::common::serialize (Archive &ar, BytesResource &obj)
 

Detailed Description

Locate and retrieve resource data.

Author
John Wason
Date
October 25, 2019
License
Software License Agreement (Apache License)
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.