3#include "reader_four_state_config_base.hpp"
11 using namespace Internal;
52 if(orientation_ != orientation)
54 orientation_ = orientation;
88 isActiveOut = pConfig->ReadFromHandle(guard);
93 virtual bool ReadFromHandle_(
const HandleGuard<ReaderConfig>& guard)
override
95 CExports::cvbbool_t active;
96 unsigned short tmpLevels;
98 CVB_CALL_CAPI(CvcBcGetFourStateAustralian(
reinterpret_cast<std::intptr_t>(guard.Handle()),
109 return SmartBool(active);
112 virtual void WriteToHandle_(
bool active, HandleGuard<ReaderConfig>& guard)
override
114 Internal::DoResCall([&]()
116 return CVB_CALL_CAPI(CvcBcSetFourStateAustralian(
reinterpret_cast<std::intptr_t>(guard.Handle()),
118 static_cast<unsigned short>(levels_),
119 static_cast<short>(orientation_),
128 FourStateAustralian()
129 : ReaderFourStateConfigBase()
Configuration to access parameters of ReaderFourStateConfigBase.
Definition: reader_four_state_config_base.hpp:20
Configuration to access parameters of FourStateAustralian (4-State Australian).
Definition: four_state_australian.hpp:17
void SetLevels(FourStateAustralianLevels levels)
Bit field which specifies the permitted subtypes of the 4-State Australian.
Definition: four_state_australian.hpp:26
CodeOrientation Orientation() const
Returns the direction of the 4-State Australian in the image.
Definition: four_state_australian.hpp:63
FourStateAustralianLevels Levels() const
Returns the bit field which specifies the permitted subtypes of the 4-State Australian.
Definition: four_state_australian.hpp:39
static std::unique_ptr< FourStateAustralian > FromHandle(const HandleGuard< ReaderConfig > &guard, bool &isActiveOut)
Create object from handle.
Definition: four_state_australian.hpp:85
void SetOrientation(CodeOrientation orientation)
Direction of the 4-State Australian in the image.
Definition: four_state_australian.hpp:50
Symbology
The symbologies supported by Barcode.
Definition: barcode.hpp:97
@ FourStateAustralian
Four State Australian Barcode.
FourStateAustralianLevels
Available level flags Four State Australian codes.
Definition: barcode.hpp:202
CodeOrientation
Directions that a four state code may have.
Definition: barcode.hpp:190
Root namespace for the Image Manager interface.
Definition: c_barcode.h:24