Vesna
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Macros | Variables
BarCodeGeneralLogic.cpp File Reference
#include "BarCodeGeneralLogic.h"
#include <math.h>
#include <qchar.h>
#include <qdatetime.h>
#include <qbytearray.h>
#include <qstringlist.h>
#include "core/common/eqtcompatible.h"
#include "qrencode/qrencode.h"
#include "core/log/emlog.h"
Include dependency graph for BarCodeGeneralLogic.cpp:

Macros

#define __USE_LOG__
 SYSTEM INCLUDES. More...
 
#define MAX_QR_SIZE   177
 

Variables

const QString BARCODE_QR_TYPE = QString( "QR" )
 
const QString BARCODE_I2OF5_TYPE = QString( "I2OF5" )
 
const char parityMatrix [10][5]
 

Macro Definition Documentation

#define __USE_LOG__

SYSTEM INCLUDES.

QT INCLUDES BASEDEF INCLUDE QR code LOGS INCLUDES

#define MAX_QR_SIZE   177

Variable Documentation

const QString BARCODE_I2OF5_TYPE = QString( "I2OF5" )
const QString BARCODE_QR_TYPE = QString( "QR" )
const char parityMatrix[10][5]
Initial value:
=
{
{ 1, 1, 1, 1, 1 },
{ 1, 2, 1, 2, 2 },
{ 1, 2, 2, 1, 2 },
{ 1, 2, 2, 2, 1 },
{ 2, 1, 1, 2, 2 },
{ 2, 2, 1, 1, 2 },
{ 2, 2, 2, 1, 1 },
{ 2, 1, 2, 1, 2 },
{ 2, 1, 2, 2, 1 },
{ 2, 2, 1, 2, 1 }
}

Matrix of parities, 1 stands for ODD, 2 stands for EVEN it has 10 rows because first flag in EAN is digit (one of ten digits 0-9) 5 columns because this matrix is applied to 5 characters of EAN code starting with 3rd char and ending with 7th (if charactrs is numbered from 1, NOT from 0 as in c++)