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()),
107 levels_ = static_cast<FourStateAustralianLevels>(tmpLevels);
108 orientation_ = static_cast<CodeOrientation>(tmpOrientation);
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_),
129 : ReaderFourStateConfigBase()
FourStateAustralianLevels
Available level flags Four State Australian codes.
Definition: barcode.hpp:201
Symbology
The symbologies supported by Barcode.
Definition: barcode.hpp:96
CodeOrientation
Directions that a four state code may have.
Definition: barcode.hpp:189
Root namespace for the Image Manager interface.
Definition: version.hpp:11
virtual Symbology Type() const override
Symbology of configuration object.
Definition: four_state_australian.hpp:76
CodeOrientation Orientation() const
Returns the direction of the 4-State Australian in the image.
Definition: four_state_australian.hpp:63
Configuration to access parameters of FourStateAustralian (4-State Australian).
Definition: four_state_australian.hpp:16
static std::unique_ptr< FourStateAustralian > FromHandle(const HandleGuard< ReaderConfig > &guard, bool &isActiveOut)
Create object from handle.
Definition: four_state_australian.hpp:85
Configuration to access parameters of ReaderFourStateConfigBase.
Definition: reader_four_state_config_base.hpp:19
void SetLevels(FourStateAustralianLevels levels)
Bit field which specifies the permitted subtypes of the 4-State Australian.
Definition: four_state_australian.hpp:26
void SetOrientation(CodeOrientation orientation)
Direction of the 4-State Australian in the image.
Definition: four_state_australian.hpp:50
FourStateAustralianLevels Levels() const
Returns the bit field which specifies the permitted subtypes of the 4-State Australian.
Definition: four_state_australian.hpp:39
Four State Australian Barcode.