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_DATAMATRIXVERSION_H_ | 7 #ifndef _BC_DATAMATRIXVERSION_H_ |
8 #define _BC_DATAMATRIXVERSION_H_ | 8 #define _BC_DATAMATRIXVERSION_H_ |
9 class ECB; | |
10 class ECBlocks; | 9 class ECBlocks; |
11 class CBC_DataMatrixVersion; | 10 class CBC_DataMatrixVersion; |
12 class ECB : public CFX_Object | 11 class ECB |
13 { | 12 { |
14 public: | 13 public: |
15 ECB(FX_INT32 count, FX_INT32 dataCodewords) | 14 ECB(FX_INT32 count, FX_INT32 dataCodewords) |
16 { | 15 { |
17 m_count = count; | 16 m_count = count; |
18 m_dataCodewords = dataCodewords; | 17 m_dataCodewords = dataCodewords; |
19 } | 18 } |
20 | 19 |
21 FX_INT32 GetCount() | 20 FX_INT32 GetCount() |
22 { | 21 { |
23 return m_count; | 22 return m_count; |
24 } | 23 } |
25 | 24 |
26 FX_INT32 GetDataCodewords() | 25 FX_INT32 GetDataCodewords() |
27 { | 26 { |
28 return m_dataCodewords; | 27 return m_dataCodewords; |
29 } | 28 } |
30 private: | 29 private: |
31 FX_INT32 m_count; | 30 FX_INT32 m_count; |
32 FX_INT32 m_dataCodewords; | 31 FX_INT32 m_dataCodewords; |
33 }; | 32 }; |
34 class ECBlocks : public CFX_Object | 33 class ECBlocks |
35 { | 34 { |
36 public: | 35 public: |
37 ECBlocks(FX_INT32 ecCodewords, ECB *ecBlocks) | 36 ECBlocks(FX_INT32 ecCodewords, ECB *ecBlocks) |
38 { | 37 { |
39 m_ecCodewords = ecCodewords; | 38 m_ecCodewords = ecCodewords; |
40 m_ecBlocks.Add(ecBlocks); | 39 m_ecBlocks.Add(ecBlocks); |
41 } | 40 } |
42 | 41 |
43 ECBlocks(FX_INT32 ecCodewords, ECB *ecBlocks1, ECB *ecBlocks2) | 42 ECBlocks(FX_INT32 ecCodewords, ECB *ecBlocks1, ECB *ecBlocks2) |
44 { | 43 { |
(...skipping 15 matching lines...) Expand all Loading... |
60 } | 59 } |
61 | 60 |
62 const CFX_PtrArray &GetECBlocks() | 61 const CFX_PtrArray &GetECBlocks() |
63 { | 62 { |
64 return m_ecBlocks; | 63 return m_ecBlocks; |
65 } | 64 } |
66 private: | 65 private: |
67 FX_INT32 m_ecCodewords; | 66 FX_INT32 m_ecCodewords; |
68 CFX_PtrArray m_ecBlocks; | 67 CFX_PtrArray m_ecBlocks; |
69 }; | 68 }; |
70 class CBC_DataMatrixVersion : public CFX_Object | 69 class CBC_DataMatrixVersion |
71 { | 70 { |
72 public: | 71 public: |
73 CBC_DataMatrixVersion(FX_INT32 versionNumber, | 72 CBC_DataMatrixVersion(FX_INT32 versionNumber, |
74 FX_INT32 symbolSizeRows, | 73 FX_INT32 symbolSizeRows, |
75 FX_INT32 symbolSizeColumns, | 74 FX_INT32 symbolSizeColumns, |
76 FX_INT32 dataRegionSizeRows, | 75 FX_INT32 dataRegionSizeRows, |
77 FX_INT32 dataRegionSizeColumns, | 76 FX_INT32 dataRegionSizeColumns, |
78 ECBlocks *ecBlocks); | 77 ECBlocks *ecBlocks); |
79 virtual ~CBC_DataMatrixVersion(); | 78 virtual ~CBC_DataMatrixVersion(); |
80 static void Initialize(); | 79 static void Initialize(); |
(...skipping 11 matching lines...) Expand all Loading... |
92 FX_INT32 m_versionNumber; | 91 FX_INT32 m_versionNumber; |
93 FX_INT32 m_symbolSizeRows; | 92 FX_INT32 m_symbolSizeRows; |
94 FX_INT32 m_symbolSizeColumns; | 93 FX_INT32 m_symbolSizeColumns; |
95 FX_INT32 m_dataRegionSizeRows; | 94 FX_INT32 m_dataRegionSizeRows; |
96 FX_INT32 m_dataRegionSizeColumns; | 95 FX_INT32 m_dataRegionSizeColumns; |
97 ECBlocks *m_ecBlocks; | 96 ECBlocks *m_ecBlocks; |
98 FX_INT32 m_totalCodewords; | 97 FX_INT32 m_totalCodewords; |
99 static CFX_PtrArray* VERSIONS; | 98 static CFX_PtrArray* VERSIONS; |
100 }; | 99 }; |
101 #endif | 100 #endif |
OLD | NEW |