imagestore.hpp
Go to the documentation of this file.
1 #ifndef ALICE_SERVICE_IMAGESTORE_HPP
2 #define ALICE_SERVICE_IMAGESTORE_HPP
3 #pragma once
4 
5 #include <qicore/file.hpp>
6 
7 #include "api.hpp"
8 
9 namespace alice
10 {
12 {
13 public:
14  virtual ~ImageStore() = default;
15 
16  // Store a copy of the image file and associate it with the provided name.
17  virtual void storeImage(qi::FilePtr imageFile, std::string name) = 0;
18 
19  // Provide access to an image file associated with the provided name.
20  virtual qi::FilePtr getImage(std::string name) = 0;
21 
22 protected:
23  ImageStore() = default;
24 };
25 
26 using ImageStorePtr = qi::Object<ImageStore>;
27 
29 }
30 #endif
ALICE_SERVICE_API
#define ALICE_SERVICE_API
Definition: example/file/api.hpp:13
alice::getImageStore
ImageStorePtr getImageStore()
Definition: imagestore.cpp:83
alice::ImageStore
Definition: imagestore.hpp:11
alice::ImageStorePtr
qi::Object< ImageStore > ImageStorePtr
Definition: imagestore.hpp:26
alice
Definition: imagestore.cpp:11
file.hpp
setup.name
name
Definition: setup.py:84
bob::storeImage
void storeImage(alice::ImageStorePtr imageStore, const std::string &name, const qi::Path &imageFilePath)
Definition: file_example.cpp:27
api.hpp
qi::FilePtr
qi::Object< File > FilePtr
Pointer to a file with shared/remote semantic.
Definition: file.hpp:213


naoqi_libqicore
Author(s): Aldebaran
autogenerated on Wed Sep 14 2022 02:22:41