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

Configuration class for Code 128 barcodes. More...

#include <cvb/config.hpp>

Inherits ConfigBase< Code128 >.

Public Member Functions

Code128SetMinDataLength (int length)
 Sets the minimum data length.
 
int MinDataLength () const
 Gets the minimum data length.
 
Code128SetMaxDataLength (int length)
 Sets the maximum data length.
 
int MaxDataLength () const
 Gets the maximum data length.
 
Code128SetEnhancementMethod (Code128EnhancementMethod method)
 Configures enhancement method for decoding.
 
Code128EnhancementMethod EnhancementMethod () const
 Gets the currently configured enhancement method for decoding.
 
- Public Member Functions inherited from ConfigBase< Code128 >
bool Enabled () const
 Checks if decoding for the code type represented by the derived class is enabled.
 
Code128Enable ()
 Enables decoding for the code type represented by the derived class.
 
Code128Disable ()
 Disables decoding for the code type represented by the derived class.
 

Friends

class Cvb::CodeReader::Decoder
 

Detailed Description

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().

Code128 & 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
@ Code128
Code 128.
Definition decl_config_base.hpp:77
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

◆ EnhancementMethod()

Code128EnhancementMethod EnhancementMethod ( ) const
inline

Gets the currently configured enhancement method for decoding.

See function Code128::SetEnhancementMethod() for details.

Returns
Currently configured enhancement method.

◆ MaxDataLength()

int MaxDataLength ( ) const
inline

Gets the maximum data length.

See function Code128::SetMaxDataLength() for details.

Returns
Number of characters of the longest decoded string.

◆ MinDataLength()

int MinDataLength ( ) const
inline

Gets the minimum data length.

Returns
Number of characters of the shortest decoded string.

◆ SetEnhancementMethod()

Code128 & SetEnhancementMethod ( Code128EnhancementMethod method)
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.

Parameters
methodEnhancement method.
Returns
A reference to the current Code128 object for method chaining.

◆ SetMaxDataLength()

Code128 & SetMaxDataLength ( int length)
inline

Sets the maximum data length.

The default value is 0 for no checking.

Parameters
lengthNumber of characters of the longest decoded string, up to 120.
Returns
A reference to the current Code128 object for method chaining.

◆ SetMinDataLength()

Code128 & SetMinDataLength ( int length)
inline

Sets the minimum data length.

Parameters
lengthNumber of characters of the shortest decoded string.
Returns
A reference to the current Code128 object for method chaining.