RICOH Camera USB SDK for C++  1.1.0
RICOH Camera USB SDK for C++
camera_image.hpp
Go to the documentation of this file.
1 // Copyright (c) 2017 Ricoh Company, Ltd. All Rights Reserved.
2 #ifndef RICOH_CAMERA_SDK_CAMERA_IMAGE_HPP_
3 #define RICOH_CAMERA_SDK_CAMERA_IMAGE_HPP_
4 
5 #include <string>
6 #include <memory>
7 
9 
10 namespace Ricoh {
11 namespace CameraController {
12 
13 class Response;
14 class CameraStorage;
15 
19 enum class ImageType {
20  Unknown,
21  StillImage,
22  Movie
23 };
24 
28 enum class ImageFormat {
29  Unknown,
30  JPEG,
31  TIFF,
32  DPOF,
33  PEF,
34  DNG,
35  MP4,
36  MOV,
37  AVI
38 };
39 
44 public:
45  virtual ~CameraImage() = default;
46 
52  virtual const std::string& getId() const = 0;
53 
59  virtual const std::string& getName() const = 0;
60 
66  virtual uint64_t getSize() const = 0;
67 
73  virtual ImageType getType() const = 0;
74 
80  virtual ImageFormat getFormat() const = 0;
81 
87  virtual bool hasThumbnail() const = 0;
88 
94  virtual time_t getDateTime() const = 0;
95 
102  virtual bool isExist() const = 0;
103 
109  virtual std::shared_ptr<const CameraStorage> getStorage() const = 0;
110 
117  virtual Response getData(std::ostream& outStream) const = 0;
118 
125  virtual Response getThumbnail(std::ostream& outStream) const = 0;
126 
132  virtual Response deleteData() const = 0;
133 };
134 
135 } // namespace CameraController
136 } // namespace Ricoh
137 
138 #endif // RICOH_CAMERA_SDK_CAMERA_IMAGE_HPP_
Definition: camera_device.hpp:13
The class for a response from a camera device.
Definition: response.hpp:27
The class for handling with image information.
Definition: camera_image.hpp:43
ImageType
The file type.
Definition: camera_image.hpp:19
#define RCSDK_API
Definition: export.hpp:17
ImageFormat
The file format.
Definition: camera_image.hpp:28