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_FXBARCODE_PDF417_BC_PDF417CODEWORD_H_ | |
8 #define XFA_FXBARCODE_PDF417_BC_PDF417CODEWORD_H_ | |
9 | |
10 #include "core/fxcrt/include/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 | |
17 FX_BOOL hasValidRowNumber(); | |
18 FX_BOOL isValidRowNumber(int32_t rowNumber); | |
19 void setRowNumberAsRowIndicatorColumn(); | |
20 int32_t getWidth(); | |
21 int32_t getStartX(); | |
22 int32_t getEndX(); | |
23 int32_t getBucket(); | |
24 int32_t getValue(); | |
25 int32_t getRowNumber(); | |
26 void setRowNumber(int32_t rowNumber); | |
27 CFX_ByteString toString(); | |
28 | |
29 private: | |
30 static int32_t BARCODE_ROW_UNKNOWN; | |
31 int32_t m_startX; | |
32 int32_t m_endX; | |
33 int32_t m_bucket; | |
34 int32_t m_value; | |
35 int32_t m_rowNumber; | |
36 }; | |
37 | |
38 #endif // XFA_FXBARCODE_PDF417_BC_PDF417CODEWORD_H_ | |
OLD | NEW |