Catalog (first part)

This commit is contained in:
Jakub Melka
2018-12-14 19:41:12 +01:00
parent 7a96807988
commit 038548c391
6 changed files with 500 additions and 12 deletions

View File

@ -110,6 +110,12 @@ public:
/// Returns info about the document (title, author, etc.)
const Info* getInfo() const { return &m_info; }
/// If object is reference, the dereference attempt is performed
/// and object is returned. If it is not a reference, then self
/// is returned. If dereference attempt fails, then null object
/// is returned (no exception is thrown).
const PDFObject& getObject(const PDFObject& object) const;
private:
friend class PDFDocumentReader;
@ -128,12 +134,6 @@ private:
/// info is used. If error is detected, exception is thrown.
void initInfo();
/// If object is reference, the dereference attempt is performed
/// and object is returned. If it is not a reference, then self
/// is returned. If dereference attempt fails, then null object
/// is returned (no exception is thrown).
const PDFObject& getObject(const PDFObject& object) const;
/// Storage of objects
PDFObjectStorage m_pdfObjectStorage;