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

Configuration class for Pharmacodes. More...

#include <cvb/config.hpp>

Inherits ConfigBase< Pharmacode >.

Public Member Functions

PharmacodeSetMinNumberBars (int value)
 Sets the minimum number of bars for decoding.
 
int MinNumberBars () const
 Gets the minimum number of bars for decoding.
 
PharmacodeSetMaxNumberBars (int value)
 Sets the maximum number of bars for decoding.
 
int MaxNumberBars () const
 Gets the maximum number of bars for decoding.
 
PharmacodeSetMinValue (int value)
 Sets the minimum value for decoding.
 
int MinValue () const
 Gets the minimum value for decoding.
 
PharmacodeSetMaxValue (int value)
 Sets the maximum value for decoding.
 
int MaxValue () const
 Gets the maximum value for decoding.
 
- Public Member Functions inherited from ConfigBase< Pharmacode >
bool Enabled () const
 Checks if decoding for the code type represented by the derived class is enabled.
 
PharmacodeEnable ()
 Enables decoding for the code type represented by the derived class.
 
PharmacodeDisable ()
 Disables decoding for the code type represented by the derived class.
 

Friends

class Cvb::CodeReader::Decoder
 

Detailed Description

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.

Member Function Documentation

◆ MaxNumberBars()

int MaxNumberBars ( ) const
inline

Gets the maximum number of bars for decoding.

See function Pharmacode::SetMaxNumberBars() for details.

Returns
Maximum number of bars for decoding.

◆ MaxValue()

int MaxValue ( ) const
inline

Gets the maximum value for decoding.

See function Pharmacode::SetMaxValue() for details.

Returns
Maximum value for decoding.

◆ MinNumberBars()

int MinNumberBars ( ) const
inline

Gets the minimum number of bars for decoding.

See function Pharmacode::SetMinNumberBars() for details.

Returns
Minimum number of bars for decoding.

◆ MinValue()

int MinValue ( ) const
inline

Gets the minimum value for decoding.

See function Pharmacode::SetMinValue() for details.

Returns
Minimum value for decoding.

◆ SetMaxNumberBars()

Pharmacode & SetMaxNumberBars ( int value)
inline

Sets the maximum number of bars for decoding.

Parameters
valueMaximum 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()

Pharmacode & SetMaxValue ( int value)
inline

Sets the maximum value for decoding.

Parameters
valueMaximum 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()

Pharmacode & SetMinNumberBars ( int value)
inline

Sets the minimum number of bars for decoding.

Parameters
valueMinimum number of bars. Value has to be between 4 and 16 (inclusive).
Returns
A reference to the current Pharmacode object for method chaining.

◆ SetMinValue()

Pharmacode & SetMinValue ( int value)
inline

Sets the minimum value for decoding.

Parameters
valueMinimum value. Value has to be between 15 and 131070 (inclusive).
Returns
A reference to the current Pharmacode object for method chaining.