Configuration class for EAN-13 barcodes.
More...
#include <cvb/config.hpp>
Inherits UpcEanBase< Ean13 >.
|
|
class | Cvb::CodeReader::Decoder |
| |
Configuration class for EAN-13 barcodes.
Use this class to configure decoding options for EAN-13 barcodes. To access the configuration and enable decoding EAN-13 barcodes, use the following example. For additional details on configuration, refer to the documentation for Decoder::Config().
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
@ Ean13
EAN-13.
Definition decl_config_base.hpp:57
- Note
- A more comprehensive code example demonstrating configuration in a broader context, as well as the decoding process, can be found here.
◆ ConvertedFromBooklandToISBN()
| bool ConvertedFromBooklandToISBN |
( |
| ) |
const |
|
inline |
Determines whether conversion from Bookland to ISBN is enabled or disabled.
- Returns
true, if conversion from Bookland to ISBN is enabled, false otherwise.
◆ ConvertedFromBooklandToISSN()
| bool ConvertedFromBooklandToISSN |
( |
| ) |
const |
|
inline |
Determines whether conversion from Bookland to ISSN is enabled or disabled.
- Returns
true, if conversion from Bookland to ISSN is enabled, false otherwise.
◆ SetConvertBooklandToISBN()
| Ean13 & SetConvertBooklandToISBN |
( |
bool | value | ) |
|
|
inline |
Enables or disables conversion from Bookland to ISBN.
- Parameters
-
| value | Set to true to enable the conversion, or false to disable it. |
- Returns
- A reference to the current configuration object for method chaining.
◆ SetConvertBooklandToISSN()
| Ean13 & SetConvertBooklandToISSN |
( |
bool | value | ) |
|
|
inline |
Enables or disables conversion from Bookland to ISSN.
- Parameters
-
| value | Set to true to enable the conversion, or false to disable it. |
- Returns
- A reference to the current configuration object for method chaining.
◆ SetStripCheckDigit()
| Ean13 & SetStripCheckDigit |
( |
bool | value | ) |
|
|
inlineoverridevirtual |
Enables or disables the removal of the check digit from read codes.
- Parameters
-
| value | Set to true to enable check digit removal, or false to keep the check digit. |
- Returns
- A reference to the current configuration object for method chaining.
Implements UpcEanBase< Ean13 >.
◆ SetSupplemental()
Configures supplemental code decoding.
- Parameters
-
| supplement | Specifies the type of supplemental code to decode. |
| required | If set to true, the code will not be decoded unless both the code and the supplemental code are successfully decoded. If false, decoding the main code does not require the presence of a supplemental code. |
| addSpace | Enables or disables adding a space character between the code and the supplemental code. |
- Returns
- A reference to the current configuration object for method chaining.
Implements UpcEanBase< Ean13 >.
◆ StripCheckDigit()
| bool StripCheckDigit |
( |
| ) |
const |
|
inlineoverridevirtual |
Determines whether check digit removal is enabled.
- Returns
true if check digit removal is enabled, false otherwise.
Implements UpcEanBase< Ean13 >.
◆ Supplemental()
Retrieves the current configuration of the supplemental code decoding.
- Returns
- The configured supplemental code decoding mode.
Implements UpcEanBase< Ean13 >.