3 #include "reader_four_state_config_base.hpp" 11 using namespace Internal;
62 isActiveOut = pConfig->ReadFromHandle(guard);
67 virtual bool ReadFromHandle_(
const HandleGuard<ReaderConfig>& guard)
override 69 CExports::cvbbool_t active;
71 CVB_CALL_CAPI(CvcBcGetFourStateUSPS(reinterpret_cast<std::intptr_t>(guard.Handle()),
79 lsb_ = static_cast<FourStateLsb>(tmpLsb);
80 return SmartBool(active);
83 virtual void WriteToHandle_(
bool active, HandleGuard<ReaderConfig>& guard)
override 85 Internal::DoResCall([&]()
87 return CVB_CALL_CAPI(CvcBcSetFourStateUSPS(reinterpret_cast<std::intptr_t>(guard.Handle()),
89 static_cast<short>(lsb_),
99 : ReaderFourStateConfigBase()
void SetLsbPosition(FourStateLsb lsb)
Sets the position of the "low significant bit" of the code in the image.
Definition: four_state_usps.hpp:25
FourStateLsb LsbPosition() const
Returns the position of the "low significant bit" of the code in the image.
Definition: four_state_usps.hpp:38
FourStateLsb
LSB settings for four state codes.
Definition: barcode.hpp:225
Symbology
The symbologies supported by Barcode.
Definition: barcode.hpp:96
Root namespace for the Image Manager interface.
Definition: version.hpp:11
Configuration to access parameters of FourStateUsps.
Definition: four_state_usps.hpp:16
virtual Symbology Type() const override
Symbology of configuration object.
Definition: four_state_usps.hpp:50
Configuration to access parameters of ReaderFourStateConfigBase.
Definition: reader_four_state_config_base.hpp:19
static std::unique_ptr< FourStateUsps > FromHandle(const HandleGuard< ReaderConfig > &guard, bool &isActiveOut)
Create object from handle.
Definition: four_state_usps.hpp:59