3#include "_detail/reader_2d_with_quietzone_config_base.hpp"
11 using namespace Internal;
29 if(maxVersionMiniQR < minVersionMiniQR_ ||
32 maxVersionMiniQR_ =
static_cast<short>(maxVersionMiniQR);
44 return maxVersionMiniQR_;
55 if(maxVersionStandardQR < minVersionStandardQR_ ||
58 maxVersionStandardQR_ =
static_cast<short>(maxVersionStandardQR);
70 return maxVersionStandardQR_;
82 if(minVersionMiniQR > maxVersionMiniQR_ ||
85 minVersionMiniQR_ =
static_cast<short>(minVersionMiniQR);
97 return minVersionMiniQR_;
109 if(minVersionStandardQR > maxVersionStandardQR_ ||
112 minVersionStandardQR_ =
static_cast<short>(minVersionStandardQR);
124 return minVersionStandardQR_;
136 if (subTypes_ != subTypes)
138 subTypes_ = subTypes;
153 short maxVersionMiniQR_;
154 short maxVersionStandardQR_;
155 short minVersionMiniQR_;
156 short minVersionStandardQR_;
184 isActiveOut = pConfig->ReadFromHandle(guard);
189 virtual bool ReadFromHandle_(
const HandleGuard<ReaderConfig>& guard)
override
191 CExports::cvbbool_t active;
192 SmartBool activeMiniQr;
193 SmartBool activeStandardQr;
194 CVB_CALL_CAPI(CvcBcGetQRCode(
199 checkQuietzone_.Ptr(),
203 activeStandardQr.Ptr(),
204 &minVersionStandardQR_,
205 &maxVersionStandardQR_
208 if (!activeMiniQr && !activeStandardQr)
210 else if (activeMiniQr && activeStandardQr)
212 else if (activeMiniQr)
214 else if (activeStandardQr)
217 return SmartBool(active);
220 virtual void WriteToHandle_(
bool active, HandleGuard<ReaderConfig>& guard)
override
222 SmartBool activeMiniQr;
223 SmartBool activeStandardQr;
224 Internal::DoResCall([&]()
226 return CVB_CALL_CAPI(CvcBcSetQRCode(
reinterpret_cast<std::intptr_t>(guard.Handle()),
235 minVersionStandardQR_,
236 maxVersionStandardQR_));
241 : Reader2DWithQuietzoneConfigBase()
Configuration to access parameters of Reader2DWithQuietzoneConfigBase.
Definition: reader_2d_with_quietzone_config_base.hpp:19
Configuration to access parameters of Qr.
Definition: qr.hpp:18
void SetMinVersionMiniQr(int minVersionMiniQR)
Limiting values for Mini-QR-code ranging from 1 to 4. The default value is 1 (min) to 4 (max) to deco...
Definition: qr.hpp:80
const short MinVersionMiniQRLowest_
Lowest possible version for mini QR reading.
Definition: qr.hpp:160
const short MaxVersionMiniQRHighest_
Highest possible version for mini QR reading.
Definition: qr.hpp:163
static std::unique_ptr< Qr > FromHandle(const HandleGuard< ReaderConfig > &guard, bool &isActiveOut)
Create object from handle.
Definition: qr.hpp:181
QrSubType SubTypes() const
Returns which varieties of QR codes to read.
Definition: qr.hpp:147
int MinVersionStandardQr() const
Limiting values for standard-QR-code ranging from 1 to 40. The default value is 1 (min) to 40 (max) t...
Definition: qr.hpp:122
void SetMaxVersionMiniQr(int maxVersionMiniQR)
Limiting values for Mini-QR-code ranging from 1 to 4. The default value is 1 (min) to 4 (max) to deco...
Definition: qr.hpp:27
int MinVersionMiniQr() const
Limiting values for Mini-QR-code ranging from 1 to 4. The default value is 1 (min) to 4 (max) to deco...
Definition: qr.hpp:95
int MaxVersionStandardQr() const
Limiting values for standard-QR-code ranging from 1 to 40. The default value is 1 (min) to 40 (max) t...
Definition: qr.hpp:68
const short MaxVersionStandardQRHighest_
Highest possible version for mini QR reading.
Definition: qr.hpp:169
void SetSubTypes(QrSubType subTypes)
Determine which varieties of QR codes to read.
Definition: qr.hpp:134
int MaxVersionMiniQr() const
Limiting values for Mini-QR-code ranging from 1 to 4. The default value is 1 (min) to 4 (max) to deco...
Definition: qr.hpp:42
void SetMinVersionStandardQr(int minVersionStandardQR)
Limiting values for standard-QR-code ranging from 1 to 40. The default value is 1 (min) to 40 (max) t...
Definition: qr.hpp:107
const short MinVersionStandardQRLowest_
Lowest possible version for mini QR reading.
Definition: qr.hpp:166
void SetMaxVersionStandardQr(int maxVersionStandardQR)
Limiting values for standard-QR-code ranging from 1 to 40. The default value is 1 (min) to 40 (max) t...
Definition: qr.hpp:53
QrSubType
QR code types to read.
Definition: barcode.hpp:396
@ Both
Both types of QR codes.
@ Mini
Mini QR codes only.
@ Standard
Standard QR codes only.
Symbology
The symbologies supported by Barcode.
Definition: barcode.hpp:97
Root namespace for the Image Manager interface.
Definition: c_barcode.h:24