3 #include "reader_planet_postnet_config_base.hpp" 11 using namespace Internal;
63 isActiveOut = pConfig->ReadFromHandle(guard);
68 virtual bool ReadFromHandle_(
const HandleGuard<ReaderConfig>& guard)
override 70 CExports::cvbbool_t active;
71 unsigned short tmpLevels;
73 CVB_CALL_CAPI(CvcBcGetPostnet(reinterpret_cast<std::intptr_t>(guard.Handle()),
80 evalCheckDigit_.Ptr(),
81 transmitCheckDigit_.Ptr(),
84 levels_ = static_cast<PostnetLevels>(tmpLevels);
85 orientation_ = static_cast<CodeOrientation>(tmpOrientation);
86 return SmartBool(active);
89 virtual void WriteToHandle_(
bool active, HandleGuard<ReaderConfig>& guard)
override 91 Internal::DoResCall([&]()
93 return CVB_CALL_CAPI(CvcBcSetPostnet(reinterpret_cast<std::intptr_t>(guard.Handle()),
95 static_cast<unsigned short>(levels_),
96 static_cast<short>(orientation_),
108 : ReaderPlanetPostnetConfigBase()
PostnetLevels Levels() const
Returns the levels for the allowed code types.
Definition: postnet.hpp:39
Symbology
The symbologies supported by Barcode.
Definition: barcode.hpp:96
void SetLevels(PostnetLevels levels)
Specifies the levels for the allowed code types.
Definition: postnet.hpp:26
static std::unique_ptr< Postnet > FromHandle(const HandleGuard< ReaderConfig > &guard, bool &isActiveOut)
Create object from handle.
Definition: postnet.hpp:60
Configuration to access parameters of Postnet.
Definition: postnet.hpp:16
Configuration to access parameters of ReaderPlanetPostnetConfigBase.
Definition: reader_planet_postnet_config_base.hpp:19
Root namespace for the Image Manager interface.
Definition: version.hpp:11
virtual Symbology Type() const override
Symbology of configuration object.
Definition: postnet.hpp:51
PostnetLevels
Available level flags for Postnet codes.
Definition: barcode.hpp:251