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_SRC_FXBARCODE_BC_DECODERRESULT_H_ | 7 #ifndef XFA_FXBARCODE_BC_DECODERRESULT_H_ |
8 #define XFA_SRC_FXBARCODE_BC_DECODERRESULT_H_ | 8 #define XFA_FXBARCODE_BC_DECODERRESULT_H_ |
9 | 9 |
10 #include "core/include/fxcrt/fx_basic.h" | 10 #include "core/include/fxcrt/fx_basic.h" |
11 | 11 |
12 class CBC_DecoderResult { | 12 class CBC_DecoderResult { |
13 public: | 13 public: |
14 CBC_DecoderResult(CFX_ByteArray* rawBytes, | 14 CBC_DecoderResult(CFX_ByteArray* rawBytes, |
15 CFX_ByteString text, | 15 CFX_ByteString text, |
16 CFX_ByteString ecLevel); | 16 CFX_ByteString ecLevel); |
17 virtual ~CBC_DecoderResult(); | 17 virtual ~CBC_DecoderResult(); |
18 CFX_ByteArray* getRawBytes(); | 18 CFX_ByteArray* getRawBytes(); |
19 CFX_ByteString getText(); | 19 CFX_ByteString getText(); |
20 CFX_ByteString getECLevel(); | 20 CFX_ByteString getECLevel(); |
21 int32_t getErrorsCorrected(); | 21 int32_t getErrorsCorrected(); |
22 void setErrorsCorrected(int32_t errorsCorrected); | 22 void setErrorsCorrected(int32_t errorsCorrected); |
23 int32_t getErasures(); | 23 int32_t getErasures(); |
24 void setErasures(int32_t erasures); | 24 void setErasures(int32_t erasures); |
25 void* getOther(); | 25 void* getOther(); |
26 void setOther(void* other); | 26 void setOther(void* other); |
27 | 27 |
28 private: | 28 private: |
29 CFX_ByteArray* m_rawBytes; | 29 CFX_ByteArray* m_rawBytes; |
30 CFX_ByteString m_text; | 30 CFX_ByteString m_text; |
31 CFX_ByteString m_ecLevel; | 31 CFX_ByteString m_ecLevel; |
32 int32_t m_errorsCorrected; | 32 int32_t m_errorsCorrected; |
33 int32_t m_erasures; | 33 int32_t m_erasures; |
34 void* m_other; | 34 void* m_other; |
35 }; | 35 }; |
36 | 36 |
37 #endif // XFA_SRC_FXBARCODE_BC_DECODERRESULT_H_ | 37 #endif // XFA_FXBARCODE_BC_DECODERRESULT_H_ |
OLD | NEW |