This namespace contains the configuration classes for all supported barcodes.
More...
|
enum class | Polarity { DarkOnLight = 1
, LightOnDark = -1
, Either = 0
} |
| Enumeration of barcode polarity options. More...
|
|
enum class | RectangularDecoding { None = 0
, Simple = 1
, Extended = 2
} |
| Enumeration for rectangular decoding modes. More...
|
|
enum class | Checksum { None = 0
, Enable = 1
, EnableAndStrip = 2
} |
| Enum class for configuring checksums. More...
|
|
enum class | SupplementalCode { None
, Supplement2digits
, Supplement5digits
, SupplementAll
} |
| Enum class for configuring supplemental code decoding for UpcA, UpcE, Ean8 and Ean13 codes. More...
|
|
This namespace contains the configuration classes for all supported barcodes.
After creating a decoder, the configuration object can be accessed through the Decoder::Config() member function. The configuration class must be specified using the Barcode::Symbology template, as shown in the following example:
static std::unique_ptr< Decoder > Create()
Creates and returns a new Decoder instance.
Definition detail_decoder.hpp:22
@ Enable
Enable checksum.
Definition decl_config_logistic_codes.hpp:19
@ DarkOnLight
Definition decl_config_base.hpp:186
@ QR
QR code.
Definition decl_config_base.hpp:47
@ DataMatrix
Data Matrix.
Definition decl_config_base.hpp:42
- Note
- A detailed description of the decoding and a code example can be found here.
◆ Checksum
Enum class for configuring checksums.
Enumerator |
---|
None | Disable checksum.
|
Enable | Enable checksum.
|
EnableAndStrip | Enable checksum and remove the check character from the result.
|
◆ Polarity
Enumeration of barcode polarity options.
Enumerator |
---|
DarkOnLight | The barcode is dark on light background.
|
LightOnDark | The barcode is light on dark background.
|
Either | The barcode can be either dark on light or light on dark.
|
◆ RectangularDecoding
Enumeration for rectangular decoding modes.
Enumerator |
---|
None | Disables rectangular decoding.
|
Simple | Enables basic rectangular decoding.
|
Extended | Enables extended rectangular decoding.
|
◆ SupplementalCode
Enum class for configuring supplemental code decoding for UpcA, UpcE, Ean8 and Ean13 codes.
Enumerator |
---|
None | Disables decoding of supplemental codes.
|
Supplement2digits | Enables decoding of 2-digit supplemental codes.
|
Supplement5digits | Enables decoding of 5-digit supplemental codes.
|
SupplementAll | Enables decoding of both 2-digit and 5-digit supplemental codes.
|