ZBRParser.h
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2/*
3 * This file is a part of the libzmf project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
9
10#ifndef ZBRPARSER_H_INCLUDED
11#define ZBRPARSER_H_INCLUDED
12
13#include <librevenge/librevenge.h>
14
15#include "ZBRHeader.h"
16#include "ZMFCollector.h"
17#include "libzmf_utils.h"
18
19 namespace libzmf
20{
21
22 class ZBRParser
23{
24 ZBRParser(const ZBRParser &other) = delete;
25 ZBRParser &operator=(const ZBRParser &other) = delete;
26
27 public:
28 ZBRParser(const RVNGInputStreamPtr &input, librevenge::RVNGDrawingInterface *painter);
29 bool parse();
30
31 protected:
32 const RVNGInputStreamPtr m_input;
33 ZMFCollector m_collector;
34 ZBRHeader m_header;
35};
36
37}
38
39#endif // ZBRPARSER_H_INCLUDED
40
41/* vim:set shiftwidth=2 softtabstop=2 expandtab: */
ZBRHeader.h
ZMFCollector.h
libzmf::ZBRHeader
Definition: ZBRHeader.h:19
libzmf::ZBRParser
Definition: ZBRParser.h:23
libzmf::ZBRParser::m_header
ZBRHeader m_header
Definition: ZBRParser.h:34
libzmf::ZBRParser::m_input
const RVNGInputStreamPtr m_input
Definition: ZBRParser.h:32
libzmf::ZBRParser::parse
bool parse()
Definition: ZBRParser.cpp:22
libzmf::ZBRParser::m_collector
ZMFCollector m_collector
Definition: ZBRParser.h:33
libzmf::ZBRParser::ZBRParser
ZBRParser(const ZBRParser &other)=delete
libzmf::ZBRParser::operator=
ZBRParser & operator=(const ZBRParser &other)=delete
libzmf::ZMFCollector
Definition: ZMFCollector.h:22
libzmf_utils.h
libzmf
Definition: BMIHeader.cpp:14
libzmf::RVNGInputStreamPtr
std::shared_ptr< librevenge::RVNGInputStream > RVNGInputStreamPtr
Definition: libzmf_utils.h:80