CVB++ 14.0
read_result_data_matrix.hpp
1#pragma once
2
3#include "read_result_2d.hpp"
4#include "grade_result_data_matrix.hpp"
5
6namespace Cvb
7{
8 CVB_BEGIN_INLINE_NS
9
10 namespace Barcode
11 {
13
17 : public ReadResult2D
18 {
19 public:
21
24 ReadResultDataMatrix(CExports::CVC_BC_INFO& handle)
25 : ReadResult2D(handle)
26 , gradeResult_(nullptr)
27 {
28
29 }
30
32
37 {
38 return static_cast<PharmaCode2DDisposition>(handle_.bar1);
39 }
40
42
47 {
48 return static_cast<PharmaCode2DDisposition>(handle_.bar2);
49 }
50
52
57 {
58 return static_cast<PharmaCode2DDisposition>(handle_.bar3);
59 }
60
62
67 {
68 return static_cast<PharmaCode2DDisposition>(handle_.bar4);
69 }
70
72
77 {
78 return static_cast<PharmaCode2DDisposition>(handle_.bar5);
79 }
80
82
87 {
88 return static_cast<PharmaCode2DDisposition>(handle_.bar6);
89 }
90
92
97 {
98 return static_cast<PharmaCode2DDisposition>(handle_.bar7);
99 }
100
102
107 {
108 return static_cast<PharmaCode2DDisposition>(handle_.bar8);
109 }
110
112
116 int Bar1Contrast() const
117 {
118 return static_cast<int>(handle_.contrast1);
119 }
120
122
126 int Bar2Contrast() const
127 {
128 return static_cast<int>(handle_.contrast2);
129 }
130
132
136 int Bar3Contrast() const
137 {
138 return static_cast<int>(handle_.contrast3);
139 }
140
142
146 int Bar4Contrast() const
147 {
148 return static_cast<int>(handle_.contrast4);
149 }
150
152
156 int Bar5Contrast() const
157 {
158 return static_cast<int>(handle_.contrast5);
159 }
160
162
166 int Bar6Contrast() const
167 {
168 return static_cast<int>(handle_.contrast6);
169 }
170
172
176 int Bar7Contrast() const
177 {
178 return static_cast<int>(handle_.contrast7);
179 }
180
182
186 int Bar8Contrast() const
187 {
188 return static_cast<int>(handle_.contrast8);
189 }
190
192
197 {
198 return static_cast<EccLevelQr>(handle_.ecc_level);
199 }
200
202
207 {
208 return gradeResult_;
209 }
210
211 protected:
212 GradeResultDataMatrixPtr gradeResult_;
213
214 friend class Reader;
215 };
216
217 using ReadResultDataMatrixPtr = std::shared_ptr<ReadResultDataMatrix>;
218 }
219
220 CVB_END_INLINE_NS
221}
Derived from ReadResult and gives specific access to DataMatrix and PharmaCode2D results.
Definition: read_result_data_matrix.hpp:18
int Bar1Contrast() const
Contrast of Bar 1 of a PharmaCode2D (if applicable).
Definition: read_result_data_matrix.hpp:116
int Bar3Contrast() const
Contrast of Bar 3 of a PharmaCode2D (if applicable).
Definition: read_result_data_matrix.hpp:136
PharmaCode2DDisposition Bar4() const
Status of Bar 4 of a PharmaCode2D (if applicable).
Definition: read_result_data_matrix.hpp:66
ReadResultDataMatrix(CExports::CVC_BC_INFO &handle)
Constructor to initialize object from info struct.
Definition: read_result_data_matrix.hpp:24
PharmaCode2DDisposition Bar7() const
Status of Bar 7 of a PharmaCode2D (if applicable).
Definition: read_result_data_matrix.hpp:96
PharmaCode2DDisposition Bar6() const
Status of Bar 6 of a PharmaCode2D (if applicable).
Definition: read_result_data_matrix.hpp:86
int Bar4Contrast() const
Contrast of Bar 4 of a PharmaCode2D (if applicable).
Definition: read_result_data_matrix.hpp:146
PharmaCode2DDisposition Bar5() const
Status of Bar 5 of a PharmaCode2D (if applicable).
Definition: read_result_data_matrix.hpp:76
int Bar7Contrast() const
Contrast of Bar 7 of a PharmaCode2D (if applicable).
Definition: read_result_data_matrix.hpp:176
int Bar5Contrast() const
Contrast of Bar 5 of a PharmaCode2D (if applicable).
Definition: read_result_data_matrix.hpp:156
PharmaCode2DDisposition Bar8() const
Status of Bar 8 of a PharmaCode2D (if applicable).
Definition: read_result_data_matrix.hpp:106
int Bar2Contrast() const
Contrast of Bar 2 of a PharmaCode2D (if applicable).
Definition: read_result_data_matrix.hpp:126
int Bar6Contrast() const
Contrast of Bar 6 of a PharmaCode2D (if applicable).
Definition: read_result_data_matrix.hpp:166
PharmaCode2DDisposition Bar1() const
Status of Bar 1 of a PharmaCode2D (if applicable).
Definition: read_result_data_matrix.hpp:36
PharmaCode2DDisposition Bar2() const
Status of Bar 2 of a PharmaCode2D (if applicable).
Definition: read_result_data_matrix.hpp:46
int Bar8Contrast() const
Contrast of Bar 8 of a PharmaCode2D (if applicable).
Definition: read_result_data_matrix.hpp:186
PharmaCode2DDisposition Bar3() const
Status of Bar 3 of a PharmaCode2D (if applicable).
Definition: read_result_data_matrix.hpp:56
GradeResultDataMatrixPtr GradeResult() const
Grading result in case grading was activated.
Definition: read_result_data_matrix.hpp:206
EccLevelQr EccLevel() const
ECC level of the code.
Definition: read_result_data_matrix.hpp:196
The key class for reading barcodes.
Definition: reader.hpp:32
Object contains information about a decoded barcode.
Definition: read_result_2d.hpp:20
PharmaCode2DDisposition
Expectation setting for Pharma Code 2D elements.
Definition: barcode.hpp:360
EccLevelQr
ECC levels as used by QR codes.
Definition: barcode.hpp:472
Root namespace for the Image Manager interface.
Definition: c_barcode.h:24