CVB++ 14.0
read_result_2d.hpp
1#pragma once
2
3#include "read_result.hpp"
4
5
6namespace Cvb
7{
8 CVB_BEGIN_INLINE_NS
9
10 namespace Barcode
11 {
12 namespace Results
13 {
14
16
19 : public ReadResult
20 {
21 public:
23
26 ReadResult2D(CExports::CVC_BC_INFO& handle)
27 : ReadResult(handle)
28 {
29 }
30
32
36 int NumColumns() const
37 {
38 return static_cast<int>(handle_.num_columns);
39 }
40
42
46 int NumRows() const
47 {
48 return static_cast<int>(handle_.num_rows);
49 }
50
52
56 int UsedEcc() const
57 {
58 return static_cast<int>(handle_.used_ecc);
59 }
60
61
62 };
63 }
64 using ReadResult2D = Results::ReadResult2D;
65 using ReadResult2DPtr = std::shared_ptr<ReadResult2D>;
66 }
67
68 CVB_END_INLINE_NS
69}
Base class for reading decoded barcode results.
Definition: read_result.hpp:23
Object contains information about a decoded barcode.
Definition: read_result_2d.hpp:20
int NumRows() const
The return value specifies the number of rows of the code, only with Data Matrix and PDF 417.
Definition: read_result_2d.hpp:46
ReadResult2D(CExports::CVC_BC_INFO &handle)
Constructor to initialize object from info struct.
Definition: read_result_2d.hpp:26
int NumColumns() const
The return value specifies the number of columns of the code, only with Data Matrix and PDF 417.
Definition: read_result_2d.hpp:36
int UsedEcc() const
The return value specifies the used ecc for the error correction in percent.
Definition: read_result_2d.hpp:56
Root namespace for the Image Manager interface.
Definition: c_barcode.h:24