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_PDF417_BC_PDF417CODEWORD_H_ | 7 #ifndef XFA_FXBARCODE_PDF417_BC_PDF417CODEWORD_H_ |
8 #define XFA_SRC_FXBARCODE_PDF417_BC_PDF417CODEWORD_H_ | 8 #define XFA_FXBARCODE_PDF417_BC_PDF417CODEWORD_H_ |
9 | 9 |
10 #include "core/include/fxcrt/fx_basic.h" | 10 #include "core/include/fxcrt/fx_basic.h" |
11 | 11 |
12 class CBC_Codeword { | 12 class CBC_Codeword { |
13 public: | 13 public: |
14 CBC_Codeword(int32_t startX, int32_t endX, int32_t bucket, int32_t value); | 14 CBC_Codeword(int32_t startX, int32_t endX, int32_t bucket, int32_t value); |
15 virtual ~CBC_Codeword(); | 15 virtual ~CBC_Codeword(); |
16 FX_BOOL hasValidRowNumber(); | 16 FX_BOOL hasValidRowNumber(); |
17 FX_BOOL isValidRowNumber(int32_t rowNumber); | 17 FX_BOOL isValidRowNumber(int32_t rowNumber); |
18 void setRowNumberAsRowIndicatorColumn(); | 18 void setRowNumberAsRowIndicatorColumn(); |
19 int32_t getWidth(); | 19 int32_t getWidth(); |
20 int32_t getStartX(); | 20 int32_t getStartX(); |
21 int32_t getEndX(); | 21 int32_t getEndX(); |
22 int32_t getBucket(); | 22 int32_t getBucket(); |
23 int32_t getValue(); | 23 int32_t getValue(); |
24 int32_t getRowNumber(); | 24 int32_t getRowNumber(); |
25 void setRowNumber(int32_t rowNumber); | 25 void setRowNumber(int32_t rowNumber); |
26 CFX_ByteString toString(); | 26 CFX_ByteString toString(); |
27 | 27 |
28 private: | 28 private: |
29 static int32_t BARCODE_ROW_UNKNOWN; | 29 static int32_t BARCODE_ROW_UNKNOWN; |
30 int32_t m_startX; | 30 int32_t m_startX; |
31 int32_t m_endX; | 31 int32_t m_endX; |
32 int32_t m_bucket; | 32 int32_t m_bucket; |
33 int32_t m_value; | 33 int32_t m_value; |
34 int32_t m_rowNumber; | 34 int32_t m_rowNumber; |
35 }; | 35 }; |
36 | 36 |
37 #endif // XFA_SRC_FXBARCODE_PDF417_BC_PDF417CODEWORD_H_ | 37 #endif // XFA_FXBARCODE_PDF417_BC_PDF417CODEWORD_H_ |
OLD | NEW |