Class ResourceLoader

Class Documentation

class backend::ResourceLoader

Public Functions

inline ResourceLoader()
void migrateResource(const ResourceId &id, const ResourceType &type, const std::string &old_folder, const std::string &new_folder, const bool move_resource)
template<typename DataType>
void deleteResource(const ResourceId &id, const ResourceType &type, const std::string &folder)
void deleteResourceNoDataType(const ResourceId &id, const ResourceType &type, const std::string &folder)
template<typename DataType>
void addResource(const ResourceId &id, const ResourceType &type, const std::string &folder, const DataType &resource)
template<typename DataType>
void getResource(const ResourceId &id, const ResourceType &type, const std::string &folder, DataType *resource) const
template<typename DataType>
bool checkResourceFile(const ResourceId &id, const ResourceType &type, const std::string &folder) const
template<typename DataType>
void replaceResource(const ResourceId &id, const ResourceType &type, const std::string &folder, const DataType &resource)
const CacheStatistic &getCacheStatistic() const
const ResourceCache::Config &getCacheConfig() const
bool resourceFileExists(const ResourceId &id, const ResourceType &type, const std::string &folder) const
void getResourceFilePath(const ResourceId &id, const ResourceType &type, const std::string &folder, std::string *file_path) const
void deleteResourceFile(const ResourceId &id, const ResourceType &type, const std::string &folder)
template<typename DataType>
void saveResourceToFile(const std::string &file_path, const ResourceType &type, const DataType &resource) const
template<typename DataType>
bool loadResourceFromFile(const std::string &file_path, const ResourceType &type, DataType *resource) const
template<>
void saveResourceToFile(const std::string &file_path, const ResourceType &type, const cv::Mat &resource) const
template<>
bool loadResourceFromFile(const std::string &file_path, const ResourceType &type, cv::Mat *resource) const
template<>
void saveResourceToFile(const std::string &file_path, const ResourceType &type, const std::string &resource) const
template<>
bool loadResourceFromFile(const std::string &file_path, const ResourceType &type, std::string *resource) const
template<>
void saveResourceToFile(const std::string &file_path, const ResourceType &type, const voxblox::TsdfMap &resource) const
template<>
bool loadResourceFromFile(const std::string &file_path, const ResourceType &type, voxblox::TsdfMap *resource) const
template<>
void saveResourceToFile(const std::string &file_path, const ResourceType &type, const voxblox::EsdfMap &resource) const
template<>
bool loadResourceFromFile(const std::string &file_path, const ResourceType &type, voxblox::EsdfMap *resource) const
template<>
void saveResourceToFile(const std::string &file_path, const ResourceType &type, const voxblox::OccupancyMap &resource) const
template<>
bool loadResourceFromFile(const std::string &file_path, const ResourceType &type, voxblox::OccupancyMap *resource) const
template<>
void saveResourceToFile(const std::string &file_path, const ResourceType &type, const resources::PointCloud &resource) const
template<>
bool loadResourceFromFile(const std::string &file_path, const ResourceType &type, resources::PointCloud *resource) const
template<>
void saveResourceToFile(const std::string &file_path, const ResourceType &type, const resources::ObjectInstanceBoundingBoxes &resource) const
template<>
bool loadResourceFromFile(const std::string &file_path, const ResourceType &type, resources::ObjectInstanceBoundingBoxes *resource) const