OLD | NEW |
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
7 #ifndef XFA_FXBARCODE_PDF417_BC_PDF417DETECTORRESULT_H_ | 7 #ifndef XFA_FXBARCODE_PDF417_BC_PDF417DETECTORRESULT_H_ |
8 #define XFA_FXBARCODE_PDF417_BC_PDF417DETECTORRESULT_H_ | 8 #define XFA_FXBARCODE_PDF417_BC_PDF417DETECTORRESULT_H_ |
9 | 9 |
10 #include "core/fxcrt/include/fx_basic.h" | 10 #include "core/fxcrt/include/fx_basic.h" |
| 11 #include "xfa/fxbarcode/BC_ResultPoint.h" |
11 | 12 |
12 class CBC_CommonBitMatrix; | 13 class CBC_CommonBitMatrix; |
13 | 14 |
14 class CBC_PDF417DetectorResult { | 15 class CBC_PDF417DetectorResult final { |
15 public: | 16 public: |
16 CBC_PDF417DetectorResult(CBC_CommonBitMatrix* bits, CFX_PtrArray* points); | 17 // Takes ownership of |points|. |
17 virtual ~CBC_PDF417DetectorResult(); | 18 CBC_PDF417DetectorResult(CBC_CommonBitMatrix* bits, |
18 CBC_CommonBitMatrix* getBits(); | 19 CBC_ResultPointArrayArray* points); |
19 CFX_PtrArray* getPoints(); | 20 ~CBC_PDF417DetectorResult(); |
| 21 |
| 22 CBC_CommonBitMatrix* getBits() const; |
| 23 CBC_ResultPointArrayArray* getPoints() const; |
20 | 24 |
21 private: | 25 private: |
22 CBC_CommonBitMatrix* m_bits; | 26 CBC_CommonBitMatrix* m_bits; |
23 CFX_PtrArray* m_points; | 27 std::unique_ptr<CBC_ResultPointArrayArray> m_points; |
24 }; | 28 }; |
25 | 29 |
26 #endif // XFA_FXBARCODE_PDF417_BC_PDF417DETECTORRESULT_H_ | 30 #endif // XFA_FXBARCODE_PDF417_BC_PDF417DETECTORRESULT_H_ |
OLD | NEW |