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()),
141 lsb_ = static_cast<FourStateLsb>(tmpLsb);
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()
virtual Symbology Type() const override
Symbology of configuration object.
Definition: four_state_kix.hpp:110
Configuration to access parameters of FourStateKix.
Definition: four_state_kix.hpp:16
void SetMinDigits(int minDigits)
Sets the minimum number of the 4-State Kix code words.
Definition: four_state_kix.hpp:51
FourStateLsb
LSB settings for four state codes.
Definition: barcode.hpp:225
Symbology
The symbologies supported by Barcode.
Definition: barcode.hpp:96
static std::unique_ptr< FourStateKix > FromHandle(const HandleGuard< ReaderConfig > &guard, bool &isActiveOut)
Create object from handle.
Definition: four_state_kix.hpp:119
int MinDigits() const
Returns the minimum number of the 4-State Kix code words.
Definition: four_state_kix.hpp:67
Root namespace for the Image Manager interface.
Definition: version.hpp:11
void SetLsbPosition(FourStateLsb lsb)
Sets the position of the "low significant bit" of the code in the image.
Definition: four_state_kix.hpp:26
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
Configuration to access parameters of ReaderFourStateConfigBase.
Definition: reader_four_state_config_base.hpp:19
int MaxDigits() const
Returns the maximum number of the 4-State Kix code words.
Definition: four_state_kix.hpp:95