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 CORE_INCLUDE_FPDFAPI_FPDF_OBJECTS_H_ | 7 #ifndef CORE_INCLUDE_FPDFAPI_FPDF_OBJECTS_H_ |
8 #define CORE_INCLUDE_FPDFAPI_FPDF_OBJECTS_H_ | 8 #define CORE_INCLUDE_FPDFAPI_FPDF_OBJECTS_H_ |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 protected: | 90 protected: |
91 CPDF_Object() : m_ObjNum(0), m_GenNum(0) {} | 91 CPDF_Object() : m_ObjNum(0), m_GenNum(0) {} |
92 virtual ~CPDF_Object(); | 92 virtual ~CPDF_Object(); |
93 void Destroy() { delete this; } | 93 void Destroy() { delete this; } |
94 | 94 |
95 FX_DWORD m_ObjNum; | 95 FX_DWORD m_ObjNum; |
96 FX_DWORD m_GenNum; | 96 FX_DWORD m_GenNum; |
97 | 97 |
98 friend class CPDF_IndirectObjectHolder; | 98 friend class CPDF_IndirectObjectHolder; |
99 friend class CPDF_Parser; | 99 friend class CPDF_Parser; |
100 friend class CPDF_SyntaxParser; | |
101 | 100 |
102 private: | 101 private: |
103 CPDF_Object(const CPDF_Object& src) {} | 102 CPDF_Object(const CPDF_Object& src) {} |
104 }; | 103 }; |
105 | 104 |
106 class CPDF_Boolean : public CPDF_Object { | 105 class CPDF_Boolean : public CPDF_Object { |
107 public: | 106 public: |
108 CPDF_Boolean() : m_bValue(false) {} | 107 CPDF_Boolean() : m_bValue(false) {} |
109 explicit CPDF_Boolean(FX_BOOL value) : m_bValue(value) {} | 108 explicit CPDF_Boolean(FX_BOOL value) : m_bValue(value) {} |
110 | 109 |
(...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
544 iterator end() { return m_IndirectObjs.end(); } | 543 iterator end() { return m_IndirectObjs.end(); } |
545 const_iterator end() const { return m_IndirectObjs.end(); } | 544 const_iterator end() const { return m_IndirectObjs.end(); } |
546 | 545 |
547 protected: | 546 protected: |
548 CPDF_Parser* m_pParser; | 547 CPDF_Parser* m_pParser; |
549 FX_DWORD m_LastObjNum; | 548 FX_DWORD m_LastObjNum; |
550 std::map<FX_DWORD, CPDF_Object*> m_IndirectObjs; | 549 std::map<FX_DWORD, CPDF_Object*> m_IndirectObjs; |
551 }; | 550 }; |
552 | 551 |
553 #endif // CORE_INCLUDE_FPDFAPI_FPDF_OBJECTS_H_ | 552 #endif // CORE_INCLUDE_FPDFAPI_FPDF_OBJECTS_H_ |
OLD | NEW |