3#include "reader_common_1d_config_base.hpp"
11 using namespace Internal;
28 if(checkDigit_ != checkDigit)
30 checkDigit_ = checkDigit;
63 isActiveOut = pConfig->ReadFromHandle(guard);
68 virtual bool ReadFromHandle_(
const HandleGuard<ReaderConfig>& guard)
override
70 CExports::cvbbool_t active;
72 CVB_CALL_CAPI(CvcBcGetCode11(
reinterpret_cast<std::intptr_t>(guard.Handle()),
76 checkQuietzone_.Ptr(),
78 transmitCheckDigit_.Ptr(),
82 return SmartBool(active);
85 virtual void WriteToHandle_(
bool active, HandleGuard<ReaderConfig>& guard)
override
87 Internal::DoResCall([&]()
89 return CVB_CALL_CAPI(CvcBcSetCode11(
reinterpret_cast<std::intptr_t>(guard.Handle()),
94 static_cast<short>(checkDigit_),
102 : ReaderCommon1DConfigBase()
Configuration to access parameters of Code11.
Definition: code11.hpp:17
static std::unique_ptr< Code11 > FromHandle(const HandleGuard< ReaderConfig > &guard, bool &isActiveOut)
Create object from handle.
Definition: code11.hpp:60
Code11CheckDigit CheckDigit() const
Returns whether to evaluate/ignore check digit.
Definition: code11.hpp:39
void SetCheckDigit(Code11CheckDigit checkDigit)
Evaluate/ignore check digit.
Definition: code11.hpp:26
Configuration to access parameters of ReaderCommon1DConfigBase.
Definition: reader_common_1d_config_base.hpp:19
Symbology
The symbologies supported by Barcode.
Definition: barcode.hpp:97
Code11CheckDigit
Available check digits for Code11.
Definition: barcode.hpp:179
Root namespace for the Image Manager interface.
Definition: c_barcode.h:24