CVB++ 15.0
Loading...
Searching...
No Matches
Code11 Class Referencefinal

Configuration class for Code 11 barcodes. More...

#include <cvb/config.hpp>

Inherits ConfigBase< Code11 >.

Public Member Functions

Code11SetChecksumEnabled (Code11ChecksumDigits numDigits, bool strip=false)
 Configures checksum for decoding.
 
std::pair< Code11ChecksumDigits, bool > IsChecksumEnabled () const
 Gets current checksum configuration.
 
- Public Member Functions inherited from ConfigBase< Code11 >
bool Enabled () const
 Checks if decoding for the code type represented by the derived class is enabled.
 
Code11Enable ()
 Enables decoding for the code type represented by the derived class.
 
Code11Disable ()
 Disables decoding for the code type represented by the derived class.
 

Friends

class Cvb::CodeReader::Decoder
 

Detailed Description

Configuration class for Code 11 barcodes.

Use this class to configure decoding options for Code 11 barcodes. To access the configuration and enable decoding Code 11 barcodes, use the following example. For additional details on configuration, refer to the documentation for Decoder::Config().

Code11 & Enable()
Definition detail_config_base.hpp:16
static std::unique_ptr< Decoder > Create()
Creates and returns a new Decoder instance.
Definition detail_decoder.hpp:22
@ Code11
Code 11.
Definition decl_config_base.hpp:117
Note
A more comprehensive code example demonstrating configuration in a broader context, as well as the decoding process, can be found here.

Member Function Documentation

◆ IsChecksumEnabled()

std::pair< Code11ChecksumDigits, bool > IsChecksumEnabled ( ) const
inline

Gets current checksum configuration.

Returns
A pair representing the checksum configuration:
  • The first value indicates the number of checksum digits.
  • The second value is a flag specifying whether checksum character(s) are removed from the decoded data.

◆ SetChecksumEnabled()

Code11 & SetChecksumEnabled ( Code11ChecksumDigits numDigits,
bool strip = false )
inline

Configures checksum for decoding.

Parameters
numDigitsValue for checksum configuration.
stripSet to true to enable removing checksum character(s) in decoded data.
Returns
A reference to the current Code11 object for method chaining.