Configuration class for Pharmacodes.
More...
#include <cvb/config.hpp>
Inherits ConfigBase< Pharmacode >.
|
class | Cvb::CodeReader::Decoder |
|
Configuration class for Pharmacodes.
Use this class to configure decoding options for Pharmacodes. To access the configuration and enable decoding Pharamacode, use the following example. For additional details on configuration, refer to the documentation for Decoder::Config().
Pharmacode & 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
@ Pharmacode
Pharmacode.
Definition decl_config_base.hpp:107
- Note
- A more comprehensive code example demonstrating configuration in a broader context, as well as the decoding process, can be found here.
◆ MaxNumberBars()
int MaxNumberBars |
( |
| ) |
const |
|
inline |
◆ MaxValue()
◆ MinNumberBars()
int MinNumberBars |
( |
| ) |
const |
|
inline |
◆ MinValue()
◆ SetMaxNumberBars()
Sets the maximum number of bars for decoding.
- Parameters
-
value | Maximum number of bars. Value has to be between 4 and 16 (inclusive) and greater than MinNumberBars(). |
- Returns
- A reference to the current Pharmacode object for method chaining.
◆ SetMaxValue()
Sets the maximum value for decoding.
- Parameters
-
value | Maximum value. Value has to be between 15 and 131070 (inclusive) and greater than MinValue(). |
- Returns
- A reference to the current Pharmacode object for method chaining.
◆ SetMinNumberBars()
Sets the minimum number of bars for decoding.
- Parameters
-
value | Minimum number of bars. Value has to be between 4 and 16 (inclusive). |
- Returns
- A reference to the current Pharmacode object for method chaining.
◆ SetMinValue()
Sets the minimum value for decoding.
- Parameters
-
value | Minimum value. Value has to be between 15 and 131070 (inclusive). |
- Returns
- A reference to the current Pharmacode object for method chaining.