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(),
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()
Configuration to access parameters of ReaderPlanetPostnetConfigBase.
Definition: reader_planet_postnet_config_base.hpp:20
Configuration to access parameters of Postnet.
Definition: postnet.hpp:17
static std::unique_ptr< Postnet > FromHandle(const HandleGuard< ReaderConfig > &guard, bool &isActiveOut)
Create object from handle.
Definition: postnet.hpp:60
void SetLevels(PostnetLevels levels)
Specifies the levels for the allowed code types.
Definition: postnet.hpp:26
PostnetLevels Levels() const
Returns the levels for the allowed code types.
Definition: postnet.hpp:39
Symbology
The symbologies supported by Barcode.
Definition: barcode.hpp:97
@ Postnet
Postnet Barcode.
PostnetLevels
Available level flags for Postnet codes.
Definition: barcode.hpp:252
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