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


Static Public Member Functions | |
| static Barcode * | create () |
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 | |
| Barcode & | build (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 |
| Barcode & | setShowText (bool value) |
| bool | showText () const |
| Barcode & | setChecksum (bool value) |
| bool | checksum () const |
| void | render (Renderer &renderer) |
| bool | isEmpty () const |
| bool | isDataValid () const |
| double | width () const |
| double | height () const |
POSTNET barcode (All USPS sizes: ZIP, ZIP+4, ZIP+4+DC).
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).
The checksum property is ignored. A mandatory check digit will always be automatically generated and appended to the input data prior to encoding.
The Show Text property is ignored.
|
static |
Static Postnet barcode creation method
Used by glbarcode::BarcodeFactory
|
protectedvirtual |
Validate number of digits