Go to the documentation of this file.
7 #include <boost/filesystem/operations.hpp>
22 boost::filesystem::remove(slot.second);
60 static const std::string PATH_PREFIX =
"./temp_image_file_";
61 static const std::string PATH_SUFFIX =
".data";
63 std::stringstream newPath;
64 newPath << PATH_PREFIX << idx << PATH_SUFFIX;
85 static ImageStorePtr imageStore = boost::make_shared<ImageStoreImpl>();
std::map< std::string, qi::Path > FileRegistry
ImageStorePtr getImageStore()
qi::Object< ImageStore > ImageStorePtr
FileRegistry _fileRegistry
qi::Path findFileLocation(const std::string &name)
QI_REGISTER_IMPLEMENTATION(ImageStore, ImageStoreImpl)
void storeFileInDatabase(const std::string &name, const qi::Path &path)
qi::FilePtr getImage(std::string name) override
void storeImage(qi::FilePtr imageFile, std::string name) override
FutureSync< void > copyToLocal(FilePtr file, Path localPath)
qi::Path generateTemporaryFilePath()
QI_REGISTER_OBJECT(ImageStore, storeImage, getImage)
~ImageStoreImpl() override
void storeImage(alice::ImageStorePtr imageStore, const std::string &name, const qi::Path &imageFilePath)
QICORE_API FilePtr openLocalFile(const qi::Path &localPath)
qiLogCategory("test.qi.fileExample.imageStore")
QI_TYPE_INTERFACE(alice::ImageStore)
qi::Object< File > FilePtr
Pointer to a file with shared/remote semantic.
naoqi_libqicore
Author(s): Aldebaran
autogenerated on Wed Sep 14 2022 02:22:41