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()),
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()
Configuration to access parameters of ReaderFourStateConfigBase.
Definition: reader_four_state_config_base.hpp:20
Configuration to access parameters of FourStateUsps.
Definition: four_state_usps.hpp:17
static std::unique_ptr< FourStateUsps > FromHandle(const HandleGuard< ReaderConfig > &guard, bool &isActiveOut)
Create object from handle.
Definition: four_state_usps.hpp:59
FourStateLsb LsbPosition() const
Returns the position of the "low significant bit" of the code in the image.
Definition: four_state_usps.hpp:38
void SetLsbPosition(FourStateLsb lsb)
Sets the position of the "low significant bit" of the code in the image.
Definition: four_state_usps.hpp:25
Symbology
The symbologies supported by Barcode.
Definition: barcode.hpp:97
@ FourStateUsps
Four State USPS Barcode.
FourStateLsb
LSB settings for four state codes.
Definition: barcode.hpp:226
Root namespace for the Image Manager interface.
Definition: c_barcode.h:24