3 #include "reader_planet_postnet_config_base.hpp" 11 using namespace Internal;
64 isActiveOut = pConfig->ReadFromHandle(guard);
69 virtual bool ReadFromHandle_(
const HandleGuard<ReaderConfig>& guard)
override 71 CExports::cvbbool_t active;
72 unsigned short tmpLevels;
74 CVB_CALL_CAPI(CvcBcGetPlanet(reinterpret_cast<std::intptr_t>(guard.Handle()),
81 evalCheckDigit_.Ptr(),
82 transmitCheckDigit_.Ptr(),
85 levels_ = static_cast<PlanetLevels>(tmpLevels);
86 orientation_ = static_cast<CodeOrientation>(tmpOrientation);
87 return SmartBool(active);
90 virtual void WriteToHandle_(
bool active, HandleGuard<ReaderConfig>& guard)
override 92 Internal::DoResCall([&]()
94 return CVB_CALL_CAPI(CvcBcSetPlanet(reinterpret_cast<std::intptr_t>(guard.Handle()),
96 static_cast<unsigned short>(levels_),
97 static_cast<short>(orientation_),
109 : ReaderPlanetPostnetConfigBase()
PlanetLevels Levels() const
Returns the levels for the allowed code types.
Definition: planet.hpp:40
static std::unique_ptr< Planet > FromHandle(const HandleGuard< ReaderConfig > &guard, bool &isActiveOut)
Create object from handle.
Definition: planet.hpp:61
Symbology
The symbologies supported by Barcode.
Definition: barcode.hpp:96
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
PlanetLevels
Available level flags for Planet codes.
Definition: barcode.hpp:238
void SetLevels(PlanetLevels levels)
Specifies the levels for the allowed code types.
Definition: planet.hpp:27
virtual Symbology Type() const override
Symbology of configuration object.
Definition: planet.hpp:52
Configuration to access parameters of Planet.
Definition: planet.hpp:17