glbarcode++
 All Classes Namespaces Files Functions Variables Typedefs Macros Pages
Implementing 2D Barcodes

All barcode implementations are derived from the abstract glbarcode::Barcode class. The glbarcode::Barcode2dBase subclass of glbarcode::Barcode provides a common framework for the implementation of 2D barcodes. Therefore, creating new 2D barcode types (or symbologies) would be typically accomplished by implementing a subclass of this glbarcode::Barcode2dBase class rather than directly implementing the glbarcode::Barcode class.

dot_inline_dotgraph_2.png

Virtual Methods

A 2D barcode subclass must implement the following virtual methods (or callbacks):

A barcode subclass may also need to implement the following virtual methods:

The following figure illustrates the data flow between these methods, which are called by glbarcode::Barcode2dBase::build():

dot_figure-2d-build.png
2D build() data flow

Registering With The Barcode Factory

2D barcodes are registered with the barcode factory in exactly the same manner as 1D barcodes. See Implementing 1D Barcodes.