OLD | NEW |
| (Empty) |
1 // Copyright 2014 PDFium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | |
6 | |
7 #ifndef XFA_SRC_FXBARCODE_PDF417_BC_PDF417CODEWORD_H_ | |
8 #define XFA_SRC_FXBARCODE_PDF417_BC_PDF417CODEWORD_H_ | |
9 | |
10 #include "core/include/fxcrt/fx_basic.h" | |
11 | |
12 class CBC_Codeword { | |
13 public: | |
14 CBC_Codeword(int32_t startX, int32_t endX, int32_t bucket, int32_t value); | |
15 virtual ~CBC_Codeword(); | |
16 FX_BOOL hasValidRowNumber(); | |
17 FX_BOOL isValidRowNumber(int32_t rowNumber); | |
18 void setRowNumberAsRowIndicatorColumn(); | |
19 int32_t getWidth(); | |
20 int32_t getStartX(); | |
21 int32_t getEndX(); | |
22 int32_t getBucket(); | |
23 int32_t getValue(); | |
24 int32_t getRowNumber(); | |
25 void setRowNumber(int32_t rowNumber); | |
26 CFX_ByteString toString(); | |
27 | |
28 private: | |
29 static int32_t BARCODE_ROW_UNKNOWN; | |
30 int32_t m_startX; | |
31 int32_t m_endX; | |
32 int32_t m_bucket; | |
33 int32_t m_value; | |
34 int32_t m_rowNumber; | |
35 }; | |
36 | |
37 #endif // XFA_SRC_FXBARCODE_PDF417_BC_PDF417CODEWORD_H_ | |
OLD | NEW |