Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(191)

Side by Side Diff: xfa/src/fxbarcode/datamatrix/BC_DataMatrixVersion.h

Issue 1087053002: Merge to XFA: Kill CFX_Object. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « xfa/src/fxbarcode/datamatrix/BC_DataMatrixDetector.h ('k') | xfa/src/fxbarcode/datamatrix/BC_DefaultPlacement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698