3 #include "reader_common_1d_config_base.hpp" 11 using namespace Internal;
29 if(checkDigit_ != checkDigit)
31 checkDigit_ = checkDigit;
62 isActiveOut = pConfig->ReadFromHandle(guard);
67 virtual bool ReadFromHandle_(
const HandleGuard<ReaderConfig>& guard)
override 69 CExports::cvbbool_t active;
71 CVB_CALL_CAPI(CvcBcGetMSIPlessey(reinterpret_cast<std::intptr_t>(guard.Handle()),
75 checkQuietzone_.Ptr(),
77 transmitCheckDigit_.Ptr(),
80 checkDigit_ = static_cast<MsiPlesseyCheckDigit>(tmpCheckDigit);
81 return SmartBool(active);
84 virtual void WriteToHandle_(
bool active, HandleGuard<ReaderConfig>& guard)
override 86 Internal::DoResCall([&]()
88 return CVB_CALL_CAPI(CvcBcSetMSIPlessey(reinterpret_cast<std::intptr_t>(guard.Handle()),
93 static_cast<short>(checkDigit_),
101 : ReaderCommon1DConfigBase()
Symbology
The symbologies supported by Barcode.
Definition: barcode.hpp:96
MsiPlesseyCheckDigit
Available check digits for MSI Plessey codes.
Definition: barcode.hpp:163
static std::unique_ptr< MsiPlessey > FromHandle(const HandleGuard< ReaderConfig > &guard, bool &isActiveOut)
Create object from handle.
Definition: msi_plessey.hpp:59
Root namespace for the Image Manager interface.
Definition: version.hpp:11
MsiPlesseyCheckDigit CheckDigit() const
Returns whether to evaluate/ignore check digit.
Definition: msi_plessey.hpp:40
Configuration to access parameters of MsiPlessey.
Definition: msi_plessey.hpp:17
Configuration to access parameters of ReaderCommon1DConfigBase.
Definition: reader_common_1d_config_base.hpp:18
virtual Symbology Type() const override
Symbology of configuration object.
Definition: msi_plessey.hpp:50
void SetCheckDigit(MsiPlesseyCheckDigit checkDigit)
Evaluate/ignore check digit.
Definition: msi_plessey.hpp:27