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

Configuration class for Code 39 barcodes. More...

#include <cvb/config.hpp>

Inherits ConfigBase< Code39 >.

Public Member Functions

Code39SetMinDataLength (int length)
 Sets the minimum data length.
 
int MinDataLength () const
 Gets the minimum data length.
 
Code39SetMaxDataLength (int length)
 Sets the maximum data length.
 
int MaxDataLength () const
 Gets the maximum data length.
 
Code39SetFullAsciiModeEnabled (bool value)
 Enables or disables the Full ASCII mode.
 
bool IsFullAsciiModeEnabled () const
 Checks whether the Full ASCII mode is enabled.
 
Code39SetChecksumEnabled (Checksum value)
 Configures checksum for decoding.
 
Checksum IsChecksumEnabled () const
 Gets checksum configuration.
 
Code39SetAddStartStopCharEnabled (bool value)
 Enables or disables adding start and stop characters to decoded data.
 
bool IsAddedStartStopCharEnabled () const
 Checks whether adding start and stop characters to decoded data is enabled.
 
- Public Member Functions inherited from ConfigBase< Code39 >
bool Enabled () const
 Checks if decoding for the code type represented by the derived class is enabled.
 
Code39Enable ()
 Enables decoding for the code type represented by the derived class.
 
Code39Disable ()
 Disables decoding for the code type represented by the derived class.
 

Friends

class Cvb::CodeReader::Decoder
 

Detailed Description

Configuration class for Code 39 barcodes.

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

Code39 & 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
@ Code39
Code 39.
Definition decl_config_base.hpp:82
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

◆ IsAddedStartStopCharEnabled()

bool IsAddedStartStopCharEnabled ( ) const
inline

Checks whether adding start and stop characters to decoded data is enabled.

Returns
value true if adding start and stop characters is enabled, false otherwise.

◆ IsChecksumEnabled()

Checksum IsChecksumEnabled ( ) const
inline

Gets checksum configuration.

Returns
Value for checksum configuration.

◆ IsFullAsciiModeEnabled()

bool IsFullAsciiModeEnabled ( ) const
inline

Checks whether the Full ASCII mode is enabled.

See function Code39::SetEnableFullAsciiMode() for details.

Returns
value true if the Full ASCII mode is enabled, false otherwise.

◆ MaxDataLength()

int MaxDataLength ( ) const
inline

Gets the maximum data length.

See function Code39::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.

◆ SetAddStartStopCharEnabled()

Code39 & SetAddStartStopCharEnabled ( bool value)
inline

Enables or disables adding start and stop characters to decoded data.

Parameters
valueSet to true to enable adding start and stop characters, or false to disable it.
Returns
A reference to the current Code39 object for method chaining.

◆ SetChecksumEnabled()

Code39 & SetChecksumEnabled ( Checksum value)
inline

Configures checksum for decoding.

Parameters
valueValue for checksum configuration.
Returns
A reference to the current Code39 object for method chaining.

◆ SetFullAsciiModeEnabled()

Code39 & SetFullAsciiModeEnabled ( bool value)
inline

Enables or disables the Full ASCII mode.

The Full ASCII mode in Code 39 is an extended encoding mode that allows the representation of all 128 ASCII characters (including lowercase letters, special symbols, and control characters) rather than just the basic 43 characters supported by the standard Code 39.

Parameters
valueSet to true to enable the Full ASCII mode, or false to disable it.
Returns
A reference to the current Code39 object for method chaining.

◆ SetMaxDataLength()

Code39 & 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 Code39 object for method chaining.

◆ SetMinDataLength()

Code39 & SetMinDataLength ( int length)
inline

Sets the minimum data length.

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