Code generator (start)

This commit is contained in:
Jakub Melka
2020-03-19 18:17:08 +01:00
parent 36cdb41cdb
commit 96d2e33692
9 changed files with 388 additions and 4 deletions

View File

@ -19,6 +19,7 @@
#define PDFDOCUMENTBUILDER_H
#include "pdfobject.h"
#include "pdfdocument.h"
namespace pdf
{
@ -63,6 +64,8 @@ public:
return *this;
}
PDFObject takeObject();
private:
void addObject(PDFObject object);
@ -111,7 +114,18 @@ private:
class PDFDocumentBuilder
{
public:
PDFDocumentBuilder();
explicit PDFDocumentBuilder();
explicit PDFDocumentBuilder(const PDFDocument* document);
PDFDocument build() const;
/* START GENERATED CODE */
/* END GENERATED CODE */
private:
PDFObjectStorage m_storage;
PDFVersion m_version;
};
} // namespace pdf