-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathUnmanagedCascableCoreBasicAPI.hpp
264 lines (236 loc) · 12 KB
/
UnmanagedCascableCoreBasicAPI.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
// This is an auto-generated file. Do not modify.
#ifndef UnmanagedCascableCoreBasicAPI_hpp
#define UnmanagedCascableCoreBasicAPI_hpp
#include <memory>
#include <string>
#include <optional>
#include <vector>
namespace CascableCoreBasicAPI {
class BasicPropertyIdentifier;
class BasicCamera;
class BasicCameraDiscovery;
class BasicCameraInitiatedTransferResult;
class BasicCameraProperty;
class BasicDeviceInfo;
class BasicLiveViewFrame;
class BasicPropertyValue;
class BasicSimulatedCameraConfiguration;
class BasicSize;
}
namespace UnmanagedCascableCoreBasicAPI {
class BasicPropertyIdentifier;
class BasicCamera;
class BasicCameraDiscovery;
class BasicCameraInitiatedTransferResult;
class BasicCameraProperty;
class BasicDeviceInfo;
class BasicLiveViewFrame;
class BasicPropertyValue;
class BasicSimulatedCameraConfiguration;
class BasicSize;
class BasicPropertyIdentifier {
private:
public:
std::shared_ptr<CascableCoreBasicAPI::BasicPropertyIdentifier> swiftObj;
BasicPropertyIdentifier(std::shared_ptr<CascableCoreBasicAPI::BasicPropertyIdentifier> swiftObj);
~BasicPropertyIdentifier();
static std::optional<UnmanagedCascableCoreBasicAPI::BasicPropertyIdentifier> initWithRawValue(unsigned int rawValue);
static UnmanagedCascableCoreBasicAPI::BasicPropertyIdentifier isoSpeed();
static UnmanagedCascableCoreBasicAPI::BasicPropertyIdentifier shutterSpeed();
static UnmanagedCascableCoreBasicAPI::BasicPropertyIdentifier aperture();
static UnmanagedCascableCoreBasicAPI::BasicPropertyIdentifier exposureCompensation();
static UnmanagedCascableCoreBasicAPI::BasicPropertyIdentifier batteryLevel();
static UnmanagedCascableCoreBasicAPI::BasicPropertyIdentifier powerSource();
static UnmanagedCascableCoreBasicAPI::BasicPropertyIdentifier afSystem();
static UnmanagedCascableCoreBasicAPI::BasicPropertyIdentifier focusMode();
static UnmanagedCascableCoreBasicAPI::BasicPropertyIdentifier driveMode();
static UnmanagedCascableCoreBasicAPI::BasicPropertyIdentifier autoExposureMode();
static UnmanagedCascableCoreBasicAPI::BasicPropertyIdentifier inCameraBracketingEnabled();
static UnmanagedCascableCoreBasicAPI::BasicPropertyIdentifier mirrorLockupEnabled();
static UnmanagedCascableCoreBasicAPI::BasicPropertyIdentifier mirrorLockupStage();
static UnmanagedCascableCoreBasicAPI::BasicPropertyIdentifier dofPreviewEnabled();
static UnmanagedCascableCoreBasicAPI::BasicPropertyIdentifier shotsAvailable();
static UnmanagedCascableCoreBasicAPI::BasicPropertyIdentifier lensStatus();
static UnmanagedCascableCoreBasicAPI::BasicPropertyIdentifier colorTone();
static UnmanagedCascableCoreBasicAPI::BasicPropertyIdentifier artFilter();
static UnmanagedCascableCoreBasicAPI::BasicPropertyIdentifier digitalZoom();
static UnmanagedCascableCoreBasicAPI::BasicPropertyIdentifier whiteBalance();
static UnmanagedCascableCoreBasicAPI::BasicPropertyIdentifier noiseReduction();
static UnmanagedCascableCoreBasicAPI::BasicPropertyIdentifier imageQuality();
static UnmanagedCascableCoreBasicAPI::BasicPropertyIdentifier lightMeterStatus();
static UnmanagedCascableCoreBasicAPI::BasicPropertyIdentifier lightMeterReading();
static UnmanagedCascableCoreBasicAPI::BasicPropertyIdentifier exposureMeteringMode();
static UnmanagedCascableCoreBasicAPI::BasicPropertyIdentifier readyForCapture();
static UnmanagedCascableCoreBasicAPI::BasicPropertyIdentifier imageDestination();
static UnmanagedCascableCoreBasicAPI::BasicPropertyIdentifier videoRecordingFormat();
static UnmanagedCascableCoreBasicAPI::BasicPropertyIdentifier liveViewZoomLevel();
static UnmanagedCascableCoreBasicAPI::BasicPropertyIdentifier maxValue();
static UnmanagedCascableCoreBasicAPI::BasicPropertyIdentifier unknown();
bool operator==(const UnmanagedCascableCoreBasicAPI::BasicPropertyIdentifier &other) const;
bool isIsoSpeed();
bool isShutterSpeed();
bool isAperture();
bool isExposureCompensation();
bool isBatteryLevel();
bool isPowerSource();
bool isAfSystem();
bool isFocusMode();
bool isDriveMode();
bool isAutoExposureMode();
bool isInCameraBracketingEnabled();
bool isMirrorLockupEnabled();
bool isMirrorLockupStage();
bool isDofPreviewEnabled();
bool isShotsAvailable();
bool isLensStatus();
bool isColorTone();
bool isArtFilter();
bool isDigitalZoom();
bool isWhiteBalance();
bool isNoiseReduction();
bool isImageQuality();
bool isLightMeterStatus();
bool isLightMeterReading();
bool isExposureMeteringMode();
bool isReadyForCapture();
bool isImageDestination();
bool isVideoRecordingFormat();
bool isLiveViewZoomLevel();
bool isMaxValue();
bool isUnknown();
unsigned int getRawValue();
};
class BasicCamera {
private:
public:
std::shared_ptr<CascableCoreBasicAPI::BasicCamera> swiftObj;
BasicCamera(std::shared_ptr<CascableCoreBasicAPI::BasicCamera> swiftObj);
~BasicCamera();
std::optional<std::string> getFriendlyIdentifier();
bool getConnected();
std::optional<UnmanagedCascableCoreBasicAPI::BasicDeviceInfo> getDeviceInfo();
std::optional<std::string> getFriendlyDisplayName();
void connect();
void disconnect();
bool getAutoFocusEngaged();
void engageAutoFocus();
void disengageAutoFocus();
bool getShutterEngaged();
void engageShutter();
void disengageShutter();
void invokeOneShotShutterExplicitlyEngagingAutoFocus(bool triggerAutoFocus);
std::optional<UnmanagedCascableCoreBasicAPI::BasicCameraInitiatedTransferResult> getLastReceivedPreview();
void setLastReceivedPreview(const std::optional<UnmanagedCascableCoreBasicAPI::BasicCameraInitiatedTransferResult> & value);
bool getHandleCameraInitiatedPreviews();
void setHandleCameraInitiatedPreviews(bool newValue);
void beginLiveViewStream();
void endLiveViewStream();
bool getLiveViewStreamActive();
std::optional<UnmanagedCascableCoreBasicAPI::BasicLiveViewFrame> getLastLiveViewFrame();
void setLastLiveViewFrame(const std::optional<UnmanagedCascableCoreBasicAPI::BasicLiveViewFrame> & value);
std::vector<UnmanagedCascableCoreBasicAPI::BasicPropertyIdentifier> getKnownPropertyIdentifiers();
UnmanagedCascableCoreBasicAPI::BasicCameraProperty property(const UnmanagedCascableCoreBasicAPI::BasicPropertyIdentifier & identifier);
};
class BasicCameraDiscovery {
private:
public:
std::shared_ptr<CascableCoreBasicAPI::BasicCameraDiscovery> swiftObj;
BasicCameraDiscovery(std::shared_ptr<CascableCoreBasicAPI::BasicCameraDiscovery> swiftObj);
~BasicCameraDiscovery();
static UnmanagedCascableCoreBasicAPI::BasicCameraDiscovery sharedInstance();
bool getDiscoveryRunning();
void setDiscoveryRunning(bool value);
std::vector<UnmanagedCascableCoreBasicAPI::BasicCamera> getVisibleCameras();
void startDiscovery(const std::string & clientName);
void stopDiscovery();
};
class BasicCameraInitiatedTransferResult {
private:
public:
std::shared_ptr<CascableCoreBasicAPI::BasicCameraInitiatedTransferResult> swiftObj;
BasicCameraInitiatedTransferResult(std::shared_ptr<CascableCoreBasicAPI::BasicCameraInitiatedTransferResult> swiftObj);
~BasicCameraInitiatedTransferResult();
double getDateProduced();
bool isOnlyDestinationForImage();
std::optional<std::string> getFileNameHint();
std::optional<std::string> getSuggestedFileNameExtensionForRepresentation();
std::optional<std::string> getUtiForRepresentation();
int getRawImageDataLength();
void copyPixelData(uint8_t* pointer);
};
class BasicCameraProperty {
private:
public:
std::shared_ptr<CascableCoreBasicAPI::BasicCameraProperty> swiftObj;
BasicCameraProperty(std::shared_ptr<CascableCoreBasicAPI::BasicCameraProperty> swiftObj);
~BasicCameraProperty();
UnmanagedCascableCoreBasicAPI::BasicPropertyIdentifier getIdentifier();
std::optional<UnmanagedCascableCoreBasicAPI::BasicCamera> getCamera();
std::optional<std::string> getLocalizedDisplayName();
std::optional<UnmanagedCascableCoreBasicAPI::BasicPropertyValue> getCurrentValue();
void setCurrentValue(const std::optional<UnmanagedCascableCoreBasicAPI::BasicPropertyValue> & value);
std::optional<UnmanagedCascableCoreBasicAPI::BasicPropertyValue> getPendingValue();
void setPendingValue(const std::optional<UnmanagedCascableCoreBasicAPI::BasicPropertyValue> & value);
std::vector<UnmanagedCascableCoreBasicAPI::BasicPropertyValue> getValidSettableValues();
void setValidSettableValues(std::vector<UnmanagedCascableCoreBasicAPI::BasicPropertyValue> value);
void setValue(const UnmanagedCascableCoreBasicAPI::BasicPropertyValue & newValue);
};
class BasicDeviceInfo {
private:
public:
std::shared_ptr<CascableCoreBasicAPI::BasicDeviceInfo> swiftObj;
BasicDeviceInfo(std::shared_ptr<CascableCoreBasicAPI::BasicDeviceInfo> swiftObj);
~BasicDeviceInfo();
std::optional<std::string> getManufacturer();
std::optional<std::string> getModel();
std::optional<std::string> getVersion();
std::optional<std::string> getSerialNumber();
};
class BasicLiveViewFrame {
private:
public:
std::shared_ptr<CascableCoreBasicAPI::BasicLiveViewFrame> swiftObj;
BasicLiveViewFrame(std::shared_ptr<CascableCoreBasicAPI::BasicLiveViewFrame> swiftObj);
~BasicLiveViewFrame();
double getDateProduced();
int getRawPixelDataLength();
void copyPixelData(uint8_t* pointer);
UnmanagedCascableCoreBasicAPI::BasicSize getRawPixelSize();
};
class BasicPropertyValue {
private:
public:
std::shared_ptr<CascableCoreBasicAPI::BasicPropertyValue> swiftObj;
BasicPropertyValue(std::shared_ptr<CascableCoreBasicAPI::BasicPropertyValue> swiftObj);
~BasicPropertyValue();
std::optional<std::string> getLocalizedDisplayValue();
std::string getStringValue();
};
class BasicSimulatedCameraConfiguration {
private:
public:
std::shared_ptr<CascableCoreBasicAPI::BasicSimulatedCameraConfiguration> swiftObj;
BasicSimulatedCameraConfiguration(std::shared_ptr<CascableCoreBasicAPI::BasicSimulatedCameraConfiguration> swiftObj);
~BasicSimulatedCameraConfiguration();
static UnmanagedCascableCoreBasicAPI::BasicSimulatedCameraConfiguration defaultConfiguration();
std::string getManufacturer();
void setManufacturer(const std::string & value);
std::string getModel();
void setModel(const std::string & value);
std::string getIdentifier();
void setIdentifier(const std::string & value);
std::string getLiveViewImageContainerPath();
void setLiveViewImageContainerPath(const std::string & value);
void apply();
};
class BasicSize {
private:
public:
std::shared_ptr<CascableCoreBasicAPI::BasicSize> swiftObj;
BasicSize(std::shared_ptr<CascableCoreBasicAPI::BasicSize> swiftObj);
~BasicSize();
double getWidth();
double getHeight();
};
}
#endif /* UnmanagedCascableCoreBasicAPI_hpp */