Configuration class for Code 128 barcodes. More...
#include <cvb/config.hpp>
Inherits ConfigBase< Code128 >.
Public Member Functions | |
Code128 & | SetMinDataLength (int length) |
Sets the minimum data length. | |
int | MinDataLength () const |
Gets the minimum data length. | |
Code128 & | SetMaxDataLength (int length) |
Sets the maximum data length. | |
int | MaxDataLength () const |
Gets the maximum data length. | |
Code128 & | SetEnhancementMethod (Code128EnhancementMethod method) |
Configures enhancement method for decoding. | |
Code128EnhancementMethod | EnhancementMethod () const |
Gets the currently configured enhancement method for decoding. | |
![]() | |
bool | Enabled () const |
Checks if decoding for the code type represented by the derived class is enabled. | |
Code128 & | Enable () |
Enables decoding for the code type represented by the derived class. | |
Code128 & | Disable () |
Disables decoding for the code type represented by the derived class. | |
Friends | |
class | Cvb::CodeReader::Decoder |
Configuration class for Code 128 barcodes.
Use this class to configure decoding options for Code 128 barcodes. To access the configuration and enable decoding Code 128 barcodes, use the following example. For additional details on configuration, refer to the documentation for Decoder::Config().
|
inline |
Gets the currently configured enhancement method for decoding.
See function Code128::SetEnhancementMethod() for details.
|
inline |
Gets the maximum data length.
See function Code128::SetMaxDataLength() for details.
|
inline |
Gets the minimum data length.
|
inline |
Configures enhancement method for decoding.
Allows enabling or disabling specific enhancement methods required for decoding. When enabled, these methods improve the ability to decode poorly printed Code 128 barcodes. By default, enhancement methods are disabled.
method | Enhancement method. |
|
inline |
Sets the maximum data length.
The default value is 0 for no checking.
length | Number of characters of the longest decoded string, up to 120. |