BPS C++ API  2.24.4
bpsdatamatrix.h
Go to the documentation of this file.
1 
4 #ifndef BPSDATAMATRIX_H
5 #define BPSDATAMATRIX_H
6 
7 #include "bpscore_global.h"
8 #include <QVector>
9 
10 
19 {
21 
22 public:
23 
27  enum Shape {
28  ShapeAny = 0,
29  ShapeSquare = 1,
30  ShapeRect = 2
31  };
32 
36  enum Mode {
37  ModeRegular = 0,
38  ModeGS1 = 1,
39  ModeReader = 2
40  };
41 
46 
47  virtual ~BpsDataMatrix();
48 
56  QVector<QVector<bool>> encode(const QString& aText, Shape aShape, Mode aMode);
57 };
58 
59 #endif // BPSDATAMATRIX_H
Public include file for BPS CORE library macros.
#define BPSCORE_EXPORT
Declare class to be an import from the shared library.
Definition: bpscore_global.h:22
#define BPS_PRIVATE(Class)
Declare pointer to private object in a public class.
Definition: bpsglobals.h:102
Encoder for Data Matrix bar code.
Definition: bpsdatamatrix.h:19
BpsDataMatrix()
Default constructor.
Shape
Code shapes.
Definition: bpsdatamatrix.h:27
Mode
Mode.
Definition: bpsdatamatrix.h:36
QVector< QVector< bool > > encode(const QString &aText, Shape aShape, Mode aMode)
Encode a text into a matrix.