Class ResourceLoader¶
Defined in File resource-loader.h
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
>
voiddeleteResource
(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
>
voidaddResource
(const ResourceId &id, const ResourceType &type, const std::string &folder, const DataType &resource)¶
-
template<typename
DataType
>
voidgetResource
(const ResourceId &id, const ResourceType &type, const std::string &folder, DataType *resource) const¶
-
template<typename
DataType
>
boolcheckResourceFile
(const ResourceId &id, const ResourceType &type, const std::string &folder) const¶
-
template<typename
DataType
>
voidreplaceResource
(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
>
voidsaveResourceToFile
(const std::string &file_path, const ResourceType &type, const DataType &resource) const¶
-
template<typename
DataType
>
boolloadResourceFromFile
(const std::string &file_path, const ResourceType &type, DataType *resource) const¶
-
template<>
voidsaveResourceToFile
(const std::string &file_path, const ResourceType &type, const cv::Mat &resource) const¶
-
template<>
boolloadResourceFromFile
(const std::string &file_path, const ResourceType &type, cv::Mat *resource) const¶
-
template<>
voidsaveResourceToFile
(const std::string &file_path, const ResourceType &type, const std::string &resource) const¶
-
template<>
boolloadResourceFromFile
(const std::string &file_path, const ResourceType &type, std::string *resource) const¶
-
template<>
voidsaveResourceToFile
(const std::string &file_path, const ResourceType &type, const voxblox::TsdfMap &resource) const¶
-
template<>
boolloadResourceFromFile
(const std::string &file_path, const ResourceType &type, voxblox::TsdfMap *resource) const¶
-
template<>
voidsaveResourceToFile
(const std::string &file_path, const ResourceType &type, const voxblox::EsdfMap &resource) const¶
-
template<>
boolloadResourceFromFile
(const std::string &file_path, const ResourceType &type, voxblox::EsdfMap *resource) const¶
-
template<>
voidsaveResourceToFile
(const std::string &file_path, const ResourceType &type, const voxblox::OccupancyMap &resource) const¶
-
template<>
boolloadResourceFromFile
(const std::string &file_path, const ResourceType &type, voxblox::OccupancyMap *resource) const¶
-
template<>
voidsaveResourceToFile
(const std::string &file_path, const ResourceType &type, const resources::PointCloud &resource) const¶
-
template<>
boolloadResourceFromFile
(const std::string &file_path, const ResourceType &type, resources::PointCloud *resource) const¶
-
template<>
voidsaveResourceToFile
(const std::string &file_path, const ResourceType &type, const resources::ObjectInstanceBoundingBoxes &resource) const¶
-
template<>
boolloadResourceFromFile
(const std::string &file_path, const ResourceType &type, resources::ObjectInstanceBoundingBoxes *resource) const¶
-
inline