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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 const CPDF_Stream* AsStream() const; | 95 const CPDF_Stream* AsStream() const; |
96 CPDF_String* AsString(); | 96 CPDF_String* AsString(); |
97 const CPDF_String* AsString() const; | 97 const CPDF_String* AsString() const; |
98 | 98 |
99 protected: | 99 protected: |
100 explicit CPDF_Object(FX_DWORD type) | 100 explicit CPDF_Object(FX_DWORD type) |
101 : m_Type(type), m_ObjNum(0), m_GenNum(0) {} | 101 : m_Type(type), m_ObjNum(0), m_GenNum(0) {} |
102 ~CPDF_Object() {} | 102 ~CPDF_Object() {} |
103 void Destroy(); | 103 void Destroy(); |
104 | 104 |
105 const CPDF_Object* const GetBasicObject() const; | 105 const CPDF_Object* GetBasicObject() const; |
106 | 106 |
107 FX_DWORD m_Type; | 107 FX_DWORD m_Type; |
108 FX_DWORD m_ObjNum; | 108 FX_DWORD m_ObjNum; |
109 FX_DWORD m_GenNum; | 109 FX_DWORD m_GenNum; |
110 | 110 |
111 friend class CPDF_IndirectObjectHolder; | 111 friend class CPDF_IndirectObjectHolder; |
112 friend class CPDF_Parser; | 112 friend class CPDF_Parser; |
113 friend class CPDF_SyntaxParser; | 113 friend class CPDF_SyntaxParser; |
114 | 114 |
115 private: | 115 private: |
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
582 iterator end() { return m_IndirectObjs.end(); } | 582 iterator end() { return m_IndirectObjs.end(); } |
583 const_iterator end() const { return m_IndirectObjs.end(); } | 583 const_iterator end() const { return m_IndirectObjs.end(); } |
584 | 584 |
585 protected: | 585 protected: |
586 CPDF_Parser* m_pParser; | 586 CPDF_Parser* m_pParser; |
587 FX_DWORD m_LastObjNum; | 587 FX_DWORD m_LastObjNum; |
588 std::map<FX_DWORD, CPDF_Object*> m_IndirectObjs; | 588 std::map<FX_DWORD, CPDF_Object*> m_IndirectObjs; |
589 }; | 589 }; |
590 | 590 |
591 #endif // CORE_INCLUDE_FPDFAPI_FPDF_OBJECTS_H_ | 591 #endif // CORE_INCLUDE_FPDFAPI_FPDF_OBJECTS_H_ |
OLD | NEW |