3#include "../_decl/decl_config_upc_ean_codes.hpp"
13#pragma region UpcEanBase
18 return this->SetIntProperty(
static_cast<int>(CExports::CVCRSymbologyPropertiesUPCA::CVCRSPUA_CompositeRequired),
26 return this->SetIntProperty(
static_cast<int>(CExports::CVCRSymbologyPropertiesUPCA::CVCRSPUA_CompositeRequired),
34 return this->SetIntProperty(
static_cast<int>(CExports::CVCRSymbologyPropertiesUPCA::CVCRSPUA_CompositeRequired),
42 return this->SetIntProperty(
static_cast<int>(CExports::CVCRSymbologyPropertiesUPCA::CVCRSPUA_CompositeRequired),
50 return this->SetIntProperty(
static_cast<int>(CExports::CVCRSymbologyPropertiesUPCA::CVCRSPUA_CompositeRequired),
58 return this->SetIntProperty(
static_cast<int>(CExports::CVCRSymbologyPropertiesUPCA::CVCRSPUA_CompositeRequired),
88 SupplementalCode UpcEanBase<T>::MapSupplemental(
bool supplement2,
bool supplement5)
const
108 int propertyRequired,
int propertyAddSpace,
111 bool supplement2 =
false, supplement5 =
false;
112 std::tie(supplement2, supplement5) = MapSupplemental(supplement);
114 this->SetIntProperty(propertyRequired,
static_cast<int>(required));
115 this->SetIntProperty(propertyAddSpace,
static_cast<int>(addSpace));
116 this->SetIntProperty(propertySupplemental2,
static_cast<int>(supplement2));
117 this->SetIntProperty(propertySupplemental5,
static_cast<int>(supplement5));
123 auto supplement2 =
static_cast<bool>(this->GetIntProperty(propertySupplemental2));
124 auto supplement5 =
static_cast<bool>(this->GetIntProperty(propertySupplemental5));
125 return MapSupplemental(supplement2, supplement5);
133 static_cast<int>(CExports::CVCRSymbologyPropertiesUPCA::CVCRSPUA_Supplemental2digit),
134 static_cast<int>(CExports::CVCRSymbologyPropertiesUPCA::CVCRSPUA_Supplemental5digit),
135 static_cast<int>(CExports::CVCRSymbologyPropertiesUPCA::CVCRSPUA_SupplementalRequired),
136 static_cast<int>(CExports::CVCRSymbologyPropertiesUPCA::CVCRSPUA_SupplementalAddSpace), supplement,
144 static_cast<int>(CExports::CVCRSymbologyPropertiesUPCA::CVCRSPUA_Supplemental2digit),
145 static_cast<int>(CExports::CVCRSymbologyPropertiesUPCA::CVCRSPUA_Supplemental5digit));
150 return this->SetIntProperty(
static_cast<int>(CExports::CVCRSymbologyPropertiesUPCA::CVCRSPUA_StripChar),
151 static_cast<int>(value));
156 return this->GetIntProperty(
static_cast<int>(CExports::CVCRSymbologyPropertiesUPCA::CVCRSPUA_StripChar));
161 return SetIntProperty(
static_cast<int>(CExports::CVCRSymbologyPropertiesUPCA::CVCRSPUA_StripNumberSystem),
162 static_cast<int>(value));
167 return static_cast<bool>(
168 this->GetIntProperty(
static_cast<int>(CExports::CVCRSymbologyPropertiesUPCA::CVCRSPUA_StripNumberSystem)));
174 this->SetIntProperty(
static_cast<int>(ReverseMapper<Config::Ean13>().type), 1);
175 return this->SetIntProperty(
static_cast<int>(CExports::CVCRSymbologyPropertiesUPCA::CVCRSPUA_ConvertToEAN13),
176 static_cast<int>(value));
181 return static_cast<bool>(
182 this->GetIntProperty(
static_cast<int>(CExports::CVCRSymbologyPropertiesUPCA::CVCRSPUA_ConvertToEAN13)));
190 static_cast<int>(CExports::CVCRSymbologyPropertiesUPCE::CVCRSPUE_Supplemental2digit),
191 static_cast<int>(CExports::CVCRSymbologyPropertiesUPCE::CVCRSPUE_Supplemental5digit),
192 static_cast<int>(CExports::CVCRSymbologyPropertiesUPCE::CVCRSPUE_SupplementalRequired),
193 static_cast<int>(CExports::CVCRSymbologyPropertiesUPCE::CVCRSPUE_SupplementalAddSpace), supplement,
201 static_cast<int>(CExports::CVCRSymbologyPropertiesUPCE::CVCRSPUE_Supplemental2digit),
202 static_cast<int>(CExports::CVCRSymbologyPropertiesUPCE::CVCRSPUE_Supplemental5digit));
207 return this->SetIntProperty(
static_cast<int>(CExports::CVCRSymbologyPropertiesUPCE::CVCRSPUE_StripChar),
208 static_cast<int>(value));
213 return this->GetIntProperty(
static_cast<int>(CExports::CVCRSymbologyPropertiesUPCE::CVCRSPUE_StripChar));
218 return this->SetIntProperty(
static_cast<int>(CExports::CVCRSymbologyPropertiesUPCE::CVCRSPUE_StripNumberSystem),
219 static_cast<int>(value));
224 return static_cast<bool>(
225 this->GetIntProperty(
static_cast<int>(CExports::CVCRSymbologyPropertiesUPCE::CVCRSPUE_StripNumberSystem)));
230 return static_cast<bool>(
231 this->GetIntProperty(
static_cast<int>(CExports::CVCRSymbologyPropertiesUPCE::CVCRSPUE_UPCE1)));
236 return this->SetIntProperty(
static_cast<int>(CExports::CVCRSymbologyPropertiesUPCE::CVCRSPUE_UPCE1),
237 static_cast<int>(value));
242 return static_cast<bool>(
243 this->GetIntProperty(
static_cast<int>(CExports::CVCRSymbologyPropertiesUPCE::CVCRSPUE_Expansion)));
248 return this->SetIntProperty(
static_cast<int>(CExports::CVCRSymbologyPropertiesUPCE::CVCRSPUE_Expansion),
249 static_cast<int>(value));
254 return this->SetIntProperty(
static_cast<int>(CExports::CVCRSymbologyPropertiesUPCE::CVCRSPUE_RejectUPCEPartial),
255 static_cast<int>(value));
260 return static_cast<bool>(
261 this->GetIntProperty(
static_cast<int>(CExports::CVCRSymbologyPropertiesUPCE::CVCRSPUE_RejectUPCEPartial)));
270 static_cast<int>(CExports::CVCRSymbologyPropertiesEAN8::CVCRSPE8_Supplemental2digit),
271 static_cast<int>(CExports::CVCRSymbologyPropertiesEAN8::CVCRSPE8_Supplemental5digit),
272 static_cast<int>(CExports::CVCRSymbologyPropertiesEAN8::CVCRSPE8_SupplementalRequired),
273 static_cast<int>(CExports::CVCRSymbologyPropertiesEAN8::CVCRSPE8_SupplementalAddSpace), supplement,
281 static_cast<int>(CExports::CVCRSymbologyPropertiesEAN8::CVCRSPE8_Supplemental2digit),
282 static_cast<int>(CExports::CVCRSymbologyPropertiesEAN8::CVCRSPE8_Supplemental5digit));
287 return this->SetIntProperty(
static_cast<int>(CExports::CVCRSymbologyPropertiesEAN8::CVCRSPE8_StripChar),
288 static_cast<int>(value));
293 return this->GetIntProperty(
static_cast<int>(CExports::CVCRSymbologyPropertiesEAN8::CVCRSPE8_StripChar));
298 return this->SetIntProperty(
static_cast<int>(CExports::CVCRSymbologyPropertiesEAN8::CVCRSPE8_ConvertToEAN13),
299 static_cast<int>(value));
304 return static_cast<bool>(
305 this->GetIntProperty(
static_cast<int>(CExports::CVCRSymbologyPropertiesEAN8::CVCRSPE8_ConvertToEAN13)));
313 static_cast<int>(CExports::CVCRSymbologyPropertiesEAN13::CVCRSPE13_Supplemental2digit),
314 static_cast<int>(CExports::CVCRSymbologyPropertiesEAN13::CVCRSPE13_Supplemental5digit),
315 static_cast<int>(CExports::CVCRSymbologyPropertiesEAN13::CVCRSPE13_SupplementalRequired),
316 static_cast<int>(CExports::CVCRSymbologyPropertiesEAN13::CVCRSPE13_SupplementalAddSpace), supplement,
324 static_cast<int>(CExports::CVCRSymbologyPropertiesEAN13::CVCRSPE13_Supplemental2digit),
325 static_cast<int>(CExports::CVCRSymbologyPropertiesEAN13::CVCRSPE13_Supplemental5digit));
330 return this->SetIntProperty(
static_cast<int>(CExports::CVCRSymbologyPropertiesEAN13::CVCRSPE13_StripChar),
331 static_cast<int>(value));
336 return this->GetIntProperty(
static_cast<int>(CExports::CVCRSymbologyPropertiesEAN13::CVCRSPE13_StripChar));
341 return this->SetIntProperty(
342 static_cast<int>(CExports::CVCRSymbologyPropertiesEAN13::CVCRSPE13_ConvertBooklandToISBN),
343 static_cast<int>(value));
348 return static_cast<bool>(this->GetIntProperty(
349 static_cast<int>(CExports::CVCRSymbologyPropertiesEAN13::CVCRSPE13_ConvertBooklandToISBN)));
354 return this->SetIntProperty(
355 static_cast<int>(CExports::CVCRSymbologyPropertiesEAN13::CVCRSPE13_ConvertBooklandToISSN),
356 static_cast<int>(value));
361 return static_cast<bool>(this->GetIntProperty(
362 static_cast<int>(CExports::CVCRSymbologyPropertiesEAN13::CVCRSPE13_ConvertBooklandToISSN)));
virtual T & EnableCCB()
Enables CompositeComponent B (CC-B) decoding.
Definition detail_config_base.hpp:75
virtual T & DisableCCB()
Disables CompositeComponent B (CC-B) decoding.
Definition detail_config_base.hpp:81
virtual T & EnableCCA()
Enables CompositeComponent A (CC-A) decoding.
Definition detail_config_base.hpp:57
virtual T & DisableCCA()
Disables CompositeComponent A (CC-A) decoding.
Definition detail_config_base.hpp:63
virtual T & EnableCCC()
Enables CompositeComponent C (CC-C) decoding.
Definition detail_config_base.hpp:93
virtual T & DisableCCC()
Disables CompositeComponent C (CC-C) decoding.
Definition detail_config_base.hpp:99
bool ConvertedFromBooklandToISSN() const
Determines whether conversion from Bookland to ISSN is enabled or disabled.
Definition detail_config_upc_ean_codes.hpp:359
Ean13 & SetStripCheckDigit(bool value) override
Enables or disables the removal of the check digit from read codes.
Definition detail_config_upc_ean_codes.hpp:328
Ean13 & SetConvertBooklandToISBN(bool value)
Enables or disables conversion from Bookland to ISBN.
Definition detail_config_upc_ean_codes.hpp:339
SupplementalCode Supplemental() const override
Retrieves the current configuration of the supplemental code decoding.
Definition detail_config_upc_ean_codes.hpp:321
bool ConvertedFromBooklandToISBN() const
Determines whether conversion from Bookland to ISBN is enabled or disabled.
Definition detail_config_upc_ean_codes.hpp:346
bool StripCheckDigit() const override
Determines whether check digit removal is enabled.
Definition detail_config_upc_ean_codes.hpp:334
Ean13 & SetConvertBooklandToISSN(bool value)
Enables or disables conversion from Bookland to ISSN.
Definition detail_config_upc_ean_codes.hpp:352
Ean13 & SetSupplemental(SupplementalCode supplement, bool required=false, bool addSpace=true) override
Configures supplemental code decoding.
Definition detail_config_upc_ean_codes.hpp:310
Ean8 & SetSupplemental(SupplementalCode supplement, bool required=false, bool addSpace=true) override
Configures supplemental code decoding.
Definition detail_config_upc_ean_codes.hpp:267
Ean8 & SetStripCheckDigit(bool value) override
Enables or disables the removal of the check digit from read codes.
Definition detail_config_upc_ean_codes.hpp:285
bool ConvertedToEAN13() const
Determines whether the conversion of EAN-8 codes to EAN-13 format is enabled or disabled.
Definition detail_config_upc_ean_codes.hpp:302
SupplementalCode Supplemental() const override
Retrieves the current configuration of the supplemental code decoding.
Definition detail_config_upc_ean_codes.hpp:278
Ean8 & SetConvertToEAN13(bool value)
Enables or disables the conversion of EAN-8 codes to EAN-13 format in the decoded data.
Definition detail_config_upc_ean_codes.hpp:296
bool StripCheckDigit() const override
Determines whether check digit removal is enabled.
Definition detail_config_upc_ean_codes.hpp:291
bool StripNumberSystemDigit() const
Determines whether UPC-A Number System digit removal is enabled.
Definition detail_config_upc_ean_codes.hpp:165
UpcA & SetConvertToEAN13(bool value)
Enables or disables the conversion of 12-digit UPC-A codes to 13-digit EAN-13 format in the decoded d...
Definition detail_config_upc_ean_codes.hpp:171
UpcA & SetStripNumberSystemDigit(bool value)
Enables or disables the removal of the UPC-A Number System digit from read codes.
Definition detail_config_upc_ean_codes.hpp:159
bool ConvertedToEAN13() const
Determines whether the conversion of 12-digit UPC-A codes to 13-digit EAN-13 format is enabled or dis...
Definition detail_config_upc_ean_codes.hpp:179
SupplementalCode Supplemental() const override
Retrieves the current configuration of the supplemental code decoding.
Definition detail_config_upc_ean_codes.hpp:141
UpcA & SetSupplemental(SupplementalCode supplement, bool required=false, bool addSpace=true) override
Configures supplemental code decoding.
Definition detail_config_upc_ean_codes.hpp:130
bool StripCheckDigit() const override
Determines whether check digit removal is enabled.
Definition detail_config_upc_ean_codes.hpp:154
UpcA & SetStripCheckDigit(bool value) override
Enables or disables the removal of the check digit from read codes.
Definition detail_config_upc_ean_codes.hpp:148
UpcE & SetEnableUpcE1(bool value)
Enables or disables UPC-E1 decoding.
Definition detail_config_upc_ean_codes.hpp:234
UpcE & SetRejectMisreadCode(bool value)
Configures handling of damaged UPCE-A and EAN-13 codes.
Definition detail_config_upc_ean_codes.hpp:252
UpcE & SetSupplemental(SupplementalCode supplement, bool required=false, bool addSpace=true) override
Configures supplemental code decoding.
Definition detail_config_upc_ean_codes.hpp:187
bool StripNumberSystemDigit() const
Determines whether UPC-E Number System digit removal is enabled.
Definition detail_config_upc_ean_codes.hpp:222
bool EnabledUpcE1() const
Checks if UPC-E1 decoding is enabled.
Definition detail_config_upc_ean_codes.hpp:228
UpcE & SetStripCheckDigit(bool value) override
Enables or disables the removal of the check digit from read codes.
Definition detail_config_upc_ean_codes.hpp:205
UpcE & SetEnableUpcEExpansion(bool value)
Enables or disables the expansion of detected UPC-E codes to the UPC-A format.
Definition detail_config_upc_ean_codes.hpp:246
SupplementalCode Supplemental() const override
Retrieves the current configuration of the supplemental code decoding.
Definition detail_config_upc_ean_codes.hpp:198
bool StripCheckDigit() const override
Determines whether check digit removal is enabled.
Definition detail_config_upc_ean_codes.hpp:211
bool EnabledUpcEExpansion() const
Determines if the expansion of detected UPC-E codes to the UPC-A format is enabled.
Definition detail_config_upc_ean_codes.hpp:240
UpcE & SetStripNumberSystemDigit(bool value)
Enables or disables the removal of the UPC-E Number System digit from read codes.
Definition detail_config_upc_ean_codes.hpp:216
bool RejectMisreadCode() const
Determines whether damaged UPC-A or EAN-13 barcodes are rejected.
Definition detail_config_upc_ean_codes.hpp:258
virtual T & SetSupplemental(SupplementalCode supplement, bool required=false, bool addSpace=true)=0
Configures supplemental code decoding.
virtual T & DisableCCA() override
Disables Composite Component A (CC-A) decoding.
Definition detail_config_upc_ean_codes.hpp:23
virtual T & DisableCCB() override
Disables Composite Component B (CC-B) decoding.
Definition detail_config_upc_ean_codes.hpp:39
virtual T & EnableCCA() override
Enables Composite Component A (CC-A) decoding.
Definition detail_config_upc_ean_codes.hpp:15
virtual T & EnableCCB() override
Enables Composite Component B (CC-B) decoding.
Definition detail_config_upc_ean_codes.hpp:31
virtual T & EnableCCC() override
Enables Composite Component C (CC-C) decoding.
Definition detail_config_upc_ean_codes.hpp:47
virtual T & DisableCCC() override
Disables Composite Component C (CC-C) decoding.
Definition detail_config_upc_ean_codes.hpp:55
virtual SupplementalCode Supplemental() const =0
Retrieves the current configuration of the supplemental code decoding.
This namespace contains the configuration classes for all supported codes.
Definition decl_config_2d_codes.hpp:14
SupplementalCode
Enum class for configuring supplemental code decoding for UpcA, UpcE, Ean8 and Ean13 codes.
Definition decl_config_upc_ean_codes.hpp:19
@ Supplement2digits
Enables decoding of 2-digit supplemental codes.
Definition decl_config_upc_ean_codes.hpp:23
@ SupplementAll
Enables decoding of both 2-digit and 5-digit supplemental codes.
Definition decl_config_upc_ean_codes.hpp:27
@ None
Disables decoding of supplemental codes.
Definition decl_config_upc_ean_codes.hpp:21
@ Supplement5digits
Enables decoding of 5-digit supplemental codes.
Definition decl_config_upc_ean_codes.hpp:25
Namespace for all decoding functionalities.
Definition decl_config_2d_codes.hpp:10
Root namespace for the Image Manager interface.
Definition c_bayer_to_rgb.h:17