glbarcode++
 
Loading...
Searching...
No Matches
glbarcode::BarcodePostnet Class Reference

#include </home/evins/glbarcode/glbarcode/BarcodePostnet.hpp>

Inheritance diagram for glbarcode::BarcodePostnet:
Collaboration diagram for glbarcode::BarcodePostnet:

Static Public Member Functions

static Barcodecreate ()
 

Protected Member Functions

virtual bool validateDigits (int nDigits)
 
- Protected Member Functions inherited from glbarcode::Barcode1dBase
 Barcode1dBase ()
 
virtual std::string preprocess (const std::string &rawData)
 
virtual std::string prepareText (const std::string &rawData)
 
- Protected Member Functions inherited from glbarcode::Barcode
 Barcode ()
 
void clear ()
 
void addLine (double x, double y, double w, double h)
 
void addBox (double x, double y, double w, double h)
 
void addText (double x, double y, double size, const std::string &text, HAlign halign=H_ALIGN_CENTER)
 
void addRing (double x, double y, double r, double w)
 
void addHexagon (double x, double y, double h)
 
void setIsEmpty (bool value)
 
void setIsDataValid (bool value)
 
void setWidth (double w)
 
void setHeight (double h)
 

Additional Inherited Members

- Public Member Functions inherited from glbarcode::Barcode1dBase
 ~Barcode1dBase () override
 
Barcodebuild (const std::string &data, double w=0, double h=0) override
 
- Public Member Functions inherited from glbarcode::Barcode
virtual ~Barcode ()
 
 Barcode (const Barcode &)=delete
 
void operator= (const Barcode &)=delete
 
BarcodesetShowText (bool value)
 
bool showText () const
 
BarcodesetChecksum (bool value)
 
bool checksum () const
 
void render (Renderer &renderer)
 
bool isEmpty () const
 
bool isDataValid () const
 
double width () const
 
double height () const
 

Detailed Description

POSTNET barcode (All USPS sizes: ZIP, ZIP+4, ZIP+4+DC).

Sample USPS POSTNET Barcode

Input Data Format

The POSTNET specification defines 10 characters, consisting solely of decimal digits (0-9). The BarcodePostnet validator and encoder will ignore spaces and dashes (-). The validator will only accept input data with 5 digits (ZIP), 9 digits (ZIP+4) or 11 digits (ZIP+4+DC).

Checksum Property

The checksum property is ignored. A mandatory check digit will always be automatically generated and appended to the input data prior to encoding.

Show Text Property

The Show Text property is ignored.

References

Member Function Documentation

◆ create()

static Barcode * glbarcode::BarcodePostnet::create ( )
static

Static Postnet barcode creation method

Used by glbarcode::BarcodeFactory

◆ validateDigits()

virtual bool glbarcode::BarcodePostnet::validateDigits ( int  nDigits)
protectedvirtual

Validate number of digits


The documentation for this class was generated from the following file: