3#include "reader_four_state_config_base.hpp"
11 using namespace Internal;
53 if(minDigits < minDigitsLimit_ ||
54 minDigits > maxDigits_)
56 if(minDigits_ != minDigits)
58 minDigits_ =
static_cast<short>(minDigits);
69 return static_cast<int>(minDigits_);
81 if(maxDigits < minDigits_ ||
82 maxDigits > maxDigitsLimit_)
84 if(maxDigits_ != maxDigits)
86 maxDigits_ =
static_cast<short>(maxDigits);
97 return static_cast<int>(maxDigits_);
106 const short minDigitsLimit_ = 6;
107 const short maxDigitsLimit_ = 18;
122 isActiveOut = pConfig->ReadFromHandle(guard);
127 virtual bool ReadFromHandle_(
const HandleGuard<ReaderConfig>& guard)
override
129 CExports::cvbbool_t active;
131 CVB_CALL_CAPI(CvcBcGetFourStateKix(
reinterpret_cast<std::intptr_t>(guard.Handle()),
142 return SmartBool(active);
145 virtual void WriteToHandle_(
bool active, HandleGuard<ReaderConfig>& guard)
override
147 Internal::DoResCall([&]()
149 return CVB_CALL_CAPI(CvcBcSetFourStateKix(
reinterpret_cast<std::intptr_t>(guard.Handle()),
153 static_cast<short>(lsb_),
163 : ReaderFourStateConfigBase()
Configuration to access parameters of ReaderFourStateConfigBase.
Definition: reader_four_state_config_base.hpp:20
Configuration to access parameters of FourStateKix.
Definition: four_state_kix.hpp:17
void SetMinDigits(int minDigits)
Sets the minimum number of the 4-State Kix code words.
Definition: four_state_kix.hpp:51
int MaxDigits() const
Returns the maximum number of the 4-State Kix code words.
Definition: four_state_kix.hpp:95
int MinDigits() const
Returns the minimum number of the 4-State Kix code words.
Definition: four_state_kix.hpp:67
static std::unique_ptr< FourStateKix > FromHandle(const HandleGuard< ReaderConfig > &guard, bool &isActiveOut)
Create object from handle.
Definition: four_state_kix.hpp:119
FourStateLsb LsbPosition() const
Returns the position of the "low significant bit" of the code in the image.
Definition: four_state_kix.hpp:39
void SetMaxDigits(int maxDigits)
Sets the maximum number of the 4-State Kix code words.
Definition: four_state_kix.hpp:79
void SetLsbPosition(FourStateLsb lsb)
Sets the position of the "low significant bit" of the code in the image.
Definition: four_state_kix.hpp:26
Symbology
The symbologies supported by Barcode.
Definition: barcode.hpp:97
@ FourStateKix
Four State KIX Barcode.
FourStateLsb
LSB settings for four state codes.
Definition: barcode.hpp:226
Root namespace for the Image Manager interface.
Definition: c_barcode.h:24