CVB++ 15.0
Postnet Class Reference

Configuration to access parameters of Postnet. More...

#include <cvb/barcode/_detail/postnet.hpp>

Inherits ReaderPlanetPostnetConfigBase.

Public Member Functions

void SetLevels (PostnetLevels levels)
 Specifies the levels for the allowed code types. More...
 
PostnetLevels Levels () const
 Returns the levels for the allowed code types. More...
 
- Public Member Functions inherited from ReaderPlanetPostnetConfigBase
void SetEvaluateCheckDigit (bool evalCheckDigit)
 Sets the evaluate/ignore check digit. More...
 
bool EvaluateCheckDigit () const
 Returns the evaluate/ignore check digit. More...
 
void SetMirrored (bool mirrored)
 Sets whether the code is mirrored/not mirrored. More...
 
bool Mirrored () const
 Returns whether the code is mirrored/not mirrored. More...
 
void SetOrientation (CodeOrientation orientation)
 Specifies the orientation of the code in the image. More...
 
CodeOrientation Orientation () const
 Returns the orientation of the code in the image. More...
 
void SetQuietzoneWidth (int quietzoneWidth)
 Sets the quiet zone in module width. Possible values ranging from 2 to 10. Normally, the value is 5. More...
 
int QuietzoneWidth () const
 Returns the quiet zone in module width. Possible values ranging from 2 to 10. Normally, the value is 5. More...
 
void SetThreshold (int threshold)
 Sets the threshold between bar and gap in the code. More...
 
int Threshold () const
 Returns the threshold between bar and gap in the code. More...
 
void SetTransmitCheckDigit (bool transmitCheckDigit)
 Append/do not append check digit to data. More...
 
bool TransmitCheckDigit () const
 Returns whether to append check digit to data. More...
 
- Public Member Functions inherited from ReaderConfigBase
void SetInverse (bool inverse)
 Code is inverted (white on black)/not inverted. More...
 
bool Inverse () const
 Returns whether the code is inverted (white on black) or not. More...
 

Static Public Member Functions

static std::unique_ptr< PostnetFromHandle (const HandleGuard< ReaderConfig > &guard, bool &isActiveOut)
 Create object from handle. More...
 

Detailed Description

Configuration to access parameters of Postnet.

Member Function Documentation

◆ FromHandle()

static std::unique_ptr< Postnet > FromHandle ( const HandleGuard< ReaderConfig > &  guard,
bool &  isActiveOut 
)
inlinestatic

Create object from handle.

Parameters
[in]guardHandle guard to read the configuration from.
[out]isActiveOutReturns the active state of the configuration in the handle.
Returns
unique pointer to object.
Exceptions
Anyexception derived from std::exception including CvbException.

◆ Levels()

PostnetLevels Levels ( ) const
inline

Returns the levels for the allowed code types.

Returns
Levels for the allowed code types.
Exceptions
Anyexception derived from std::exception including CvbException.
See also
SetLevels

◆ SetLevels()

void SetLevels ( PostnetLevels  levels)
inline

Specifies the levels for the allowed code types.

Parameters
[in]levelsLevels for the allowed code types.
Exceptions
Anyexception derived from std::exception including CvbException.
See also
Levels