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(),
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()
Configuration to access parameters of ReaderCommon1DConfigBase.
Definition: reader_common_1d_config_base.hpp:19
Configuration to access parameters of MsiPlessey.
Definition: msi_plessey.hpp:18
MsiPlesseyCheckDigit CheckDigit() const
Returns whether to evaluate/ignore check digit.
Definition: msi_plessey.hpp:40
static std::unique_ptr< MsiPlessey > FromHandle(const HandleGuard< ReaderConfig > &guard, bool &isActiveOut)
Create object from handle.
Definition: msi_plessey.hpp:59
void SetCheckDigit(MsiPlesseyCheckDigit checkDigit)
Evaluate/ignore check digit.
Definition: msi_plessey.hpp:27
Symbology
The symbologies supported by Barcode.
Definition: barcode.hpp:97
@ MsiPlessey
MSI Plessey Barcode.
MsiPlesseyCheckDigit
Available check digits for MSI Plessey codes.
Definition: barcode.hpp:164
Root namespace for the Image Manager interface.
Definition: c_barcode.h:24