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