|
| 1 | +--- |
| 2 | +layout: default-layout |
| 3 | +title: CBarcodeResultItem Class - Dynamsoft Barcode Reader C++ Edition API Reference |
| 4 | +description: This page shows CBarcodeResultItem class definition of Dynamsoft Barcode Reader SDK C++ Edition. |
| 5 | +keywords: GetFormat, GetText, GetLocation, GetConfidence, GetModuleSize, CBarcodeResultItem, api reference |
| 6 | +--- |
| 7 | + |
| 8 | +# CBarcodeResultItem Class |
| 9 | + |
| 10 | +The `CBarcodeResultItem` class represents a barcode result item decoded by barcode reader engine. It is derived from `CCapturedResultItem`. |
| 11 | + |
| 12 | +## Definition |
| 13 | + |
| 14 | +*Namespace:* dynamsoft::dbr |
| 15 | + |
| 16 | +*Assembly:* DynamsoftBarcodeReader |
| 17 | + |
| 18 | +*Inheritance:* [CCapturedResultItem]({{ site.dcv_cpp_api }}core/basic-structures/captured-result-item.html) -> CBarcodeResultItem |
| 19 | + |
| 20 | +```cpp |
| 21 | +class CBarcodeResultItem : public CCapturedResultItem |
| 22 | +``` |
| 23 | +
|
| 24 | +## Methods |
| 25 | +
|
| 26 | +| Method | Description | |
| 27 | +|----------------------|-------------| |
| 28 | +| [`GetFormat`](#getformat) | Gets the format of the decoded barcode result. | |
| 29 | +| [`GetFormatString`](#getformatstring) | Gets the format string of the decoded barcode result. | |
| 30 | +| [`GetText`](#gettext) | Gets the text result of the decoded barcode. | |
| 31 | +| [`GetBytes`](#getbytes) | Gets the text bytes of the decoded barcode result. | |
| 32 | +| [`GetBytesLength`](#getbyteslength) | Gets the text length of the decoded barcode result. | |
| 33 | +| [`GetLocation`](#getlocation) | Gets the location of the decoded barcode in a quadrilateral. | |
| 34 | +| [`GetConfidence`](#getconfidence) | Gets the confidence of the decoded barcode result. | |
| 35 | +| [`GetAngle`](#getangle) | Gets the angle of the decoded barcode result. | |
| 36 | +| [`GetModuleSize`](#getmodulesize) | Gets the module size of the decoded barcode result. | |
| 37 | +| [`GetDetails`](#getdetails) | Gets the details of the decoded barcode result. | |
| 38 | +| [`IsDPM`](#isdpm) | Gets whether the decoded barcode is a DPM code. | |
| 39 | +| [`IsMirrored`](#ismirrored) | Gets whether the decoded barcode is a mirrored barcode. | |
| 40 | +
|
| 41 | +### Inherited Methods |
| 42 | +
|
| 43 | +{%- include inherited-methods/captured-result-item.md -%} |
| 44 | +
|
| 45 | +### GetFormat |
| 46 | +
|
| 47 | +It is used to get the format of the decoded barcode result. |
| 48 | +
|
| 49 | +```cpp |
| 50 | +virtual BarcodeFormat GetFormat() const = 0; |
| 51 | +``` |
| 52 | + |
| 53 | +**Return value** |
| 54 | + |
| 55 | +Returns the format of the decoded barcode result. |
| 56 | + |
| 57 | +**See Also** |
| 58 | + |
| 59 | +[Enumeration BarcodeFormat]({{ site.dcv_enumerations }}barcode-reader/barcode-format.html?src=cpp&&lang=cpp) |
| 60 | + |
| 61 | +### GetFormatString |
| 62 | + |
| 63 | +It is used to get the format string of the decoded barcode result. |
| 64 | + |
| 65 | +```cpp |
| 66 | +virtual const char* GetFormatString() const = 0; |
| 67 | +``` |
| 68 | + |
| 69 | +**Return value** |
| 70 | + |
| 71 | +Returns the format string of the decoded barcode result. |
| 72 | + |
| 73 | +### GetText |
| 74 | + |
| 75 | +It is used to get the text result of the decoded barcode. |
| 76 | + |
| 77 | +```cpp |
| 78 | +virtual const char* GetText() const = 0; |
| 79 | +``` |
| 80 | + |
| 81 | +**Return value** |
| 82 | + |
| 83 | +Returns the text result of the decoded barcode. |
| 84 | + |
| 85 | +### GetBytes |
| 86 | + |
| 87 | +It is used to get the text bytes of the decoded barcode result. |
| 88 | + |
| 89 | +```cpp |
| 90 | +virtual unsigned char* GetBytes() const = 0; |
| 91 | +``` |
| 92 | + |
| 93 | +**Return value** |
| 94 | + |
| 95 | +Returns the text bytes of the decoded barcode result. |
| 96 | + |
| 97 | +### GetBytesLength |
| 98 | + |
| 99 | +It is used to get the text bytes length of the decoded barcode result. |
| 100 | + |
| 101 | +```cpp |
| 102 | +virtual int GetBytesLength() const = 0; |
| 103 | +``` |
| 104 | + |
| 105 | +**Return value** |
| 106 | + |
| 107 | +Returns the text bytes length of the decoded barcode result. |
| 108 | + |
| 109 | +### GetLocation |
| 110 | + |
| 111 | +It is used to get the location of the decoded barcode in a quadrilateral. |
| 112 | + |
| 113 | +```cpp |
| 114 | +virtual CQuadrilateral GetLocation() const = 0; |
| 115 | +``` |
| 116 | + |
| 117 | +**Return value** |
| 118 | + |
| 119 | +Returns the location of the decoded barcode in a quadrilateral. |
| 120 | + |
| 121 | +**See Also** |
| 122 | + |
| 123 | +[CQuadrilateral]({{ site.dcv_cpp_api }}core/basic-structures/quadrilateral.html) |
| 124 | + |
| 125 | +### GetConfidence |
| 126 | + |
| 127 | +It is used to get the confidence of the decoded barcode result. |
| 128 | + |
| 129 | +```cpp |
| 130 | +virtual int GetConfidence() const = 0; |
| 131 | +``` |
| 132 | + |
| 133 | +**Return value** |
| 134 | + |
| 135 | +Returns the confidence of the decoded barcode result. |
| 136 | + |
| 137 | +### GetAngle |
| 138 | + |
| 139 | +It is used to get the angle of the decoded barcode result. |
| 140 | + |
| 141 | +```cpp |
| 142 | +virtual int GetAngle() const = 0; |
| 143 | +``` |
| 144 | + |
| 145 | +**Return value** |
| 146 | + |
| 147 | +Returns the angle of the decoded barcode result. |
| 148 | + |
| 149 | +### GetModuleSize |
| 150 | + |
| 151 | +It is used to get the module size of the decoded barcode result. |
| 152 | + |
| 153 | +```cpp |
| 154 | +virtual int GetModuleSize() const = 0; |
| 155 | +``` |
| 156 | + |
| 157 | +**Return value** |
| 158 | + |
| 159 | +Returns the module size of the decoded barcode result. |
| 160 | + |
| 161 | +### GetDetails |
| 162 | + |
| 163 | +It is used to get the details of the decoded barcode result. |
| 164 | + |
| 165 | +```cpp |
| 166 | +virtual const CBarcodeDetails* GetDetails() const = 0; |
| 167 | +``` |
| 168 | + |
| 169 | +**Return value** |
| 170 | + |
| 171 | +Returns the details of the decoded barcode result. |
| 172 | + |
| 173 | +**See Also** |
| 174 | + |
| 175 | +- [CAztecDetails]({{ site.dbr_cpp_api }}aztec-details.html) |
| 176 | +- [CBarcodeDetails]({{ site.dbr_cpp_api }}barcode-details.html) |
| 177 | +- [CDataMatrixDetails]({{ site.dbr_cpp_api }}datamatrix-details.html) |
| 178 | +- [COneDCodeDetails]({{ site.dbr_cpp_api }}oned-code-details.html) |
| 179 | +- [CPDF417Details]({{ site.dbr_cpp_api }}pdf417-details.html) |
| 180 | +- [CQRCodeDetails]({{ site.dbr_cpp_api }}qr-code-details.html) |
| 181 | + |
| 182 | +### IsDPM |
| 183 | + |
| 184 | +It is used to get whether the decoded barcode is a DPM code. |
| 185 | + |
| 186 | +```cpp |
| 187 | +virtual bool IsDPM() const = 0; |
| 188 | +``` |
| 189 | + |
| 190 | +**Return value** |
| 191 | + |
| 192 | +Returns whether the decoded barcode is a DPM code. |
| 193 | + |
| 194 | +### IsMirrored |
| 195 | + |
| 196 | +It is used to get whether the decoded barcode is mirrored. |
| 197 | + |
| 198 | +```cpp |
| 199 | +virtual bool IsMirrored() const = 0; |
| 200 | +``` |
| 201 | + |
| 202 | +**Return value** |
| 203 | + |
| 204 | +Returns whether the decoded barcode is mirrored. |
| 205 | + |
0 commit comments