Configuration class for Code 39 barcodes.
More...
#include <cvb/config.hpp>
Inherits ConfigBase< Code39 >.
|
class | Cvb::CodeReader::Decoder |
|
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.
◆ 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()
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
-
value | Set 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()
Configures checksum for decoding.
- Parameters
-
value | Value 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
-
value | Set 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
-
length | Number 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
-
length | Number of characters of the shortest decoded string. |
- Returns
- A reference to the current Code39 object for method chaining.