RICOH Camera USB SDK for C++  1.1.0
RICOH Camera USB SDK for C++
camera_device_setting.hpp
Go to the documentation of this file.
1 // Copyright (c) 2017 Ricoh Company, Ltd. All Rights Reserved.
2 #ifndef RICOH_CAMERA_SDK_CAMERA_DEVICE_SETTING_HPP_
3 #define RICOH_CAMERA_SDK_CAMERA_DEVICE_SETTING_HPP_
4 
5 #include <string>
6 #include <memory>
7 
9 
10 namespace Ricoh {
11 namespace CameraController {
12 
13 class CameraDeviceSettingValue;
14 
20 public:
21  virtual ~CameraDeviceSetting() = default;
22 
23  virtual bool operator==(const CameraDeviceSetting& obj) const;
24  virtual bool operator!=(const CameraDeviceSetting& obj) const;
25 
31  virtual const std::string& getName() const;
32 
38  virtual const CameraDeviceSettingValue& getValue() const;
39 
45  virtual void setValue(std::unique_ptr<CameraDeviceSettingValue>&& value);
46 
47  virtual std::string toString() const;
48 
49 protected:
50  CameraDeviceSetting(const std::string& name);
51  CameraDeviceSetting(const std::string& name, CameraDeviceSettingValue* value);
52 
53  std::string name_;
54  std::unique_ptr<CameraDeviceSettingValue> value_;
55 };
56 
61 public:
62  virtual ~CameraDeviceSettingValue() = default;
63 
64  virtual bool operator==(const CameraDeviceSettingValue& obj) const = 0;
65  virtual bool operator!=(const CameraDeviceSettingValue& obj) const = 0;
66 
67  virtual std::string toString() const = 0;
68 };
69 
70 } // namespace CameraController
71 } // namespace Ricoh
72 
73 #endif // RICOH_CAMERA_SDK_CAMERA_DEVICE_SETTING_HPP_
Definition: camera_device.hpp:13
This class is base for value of camera settings.
Definition: camera_device_setting.hpp:60
#define RCSDK_API
Definition: export.hpp:17
This class is base class for camera device settings. Sub classes of this class are used to handle cam...
Definition: camera_device_setting.hpp:19