- Main Page
- Related Pages
- Namespaces
- Classes
- Files

- File List
- File Members

IWORKParser.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 part of the libetonyek 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 IWORKPARSER_H_INCLUDED
11 #define IWORKPARSER_H_INCLUDED
12
13 #include "libetonyek_utils.h"
14 #include "IWORKXMLContext.h"
15
16 namespace libetonyek
17 {
18
19 struct IWORKDictionary;
20 class IWORKTokenizer;
21 class IWORKXMLParserState;
22
23 class IWORKParser
24 {
25 // -Weffc++
26 IWORKParser(const IWORKParser &);
27 IWORKParser &operator=(const IWORKParser &);
28
29 public:
30 IWORKParser(const RVNGInputStreamPtr_t &input, const RVNGInputStreamPtr_t &package);
31 virtual ~IWORKParser() = 0;
32 bool parse();
33
34 RVNGInputStreamPtr_t &getInput();
35 RVNGInputStreamPtr_t getInput() const;
36 RVNGInputStreamPtr_t &getPackage();
37 RVNGInputStreamPtr_t getPackage() const;
38
39 virtual const IWORKTokenizer &getTokenizer() const = 0;
40
41 private:
42 virtual IWORKXMLContextPtr_t createDocumentContext() = 0;
43 virtual IWORKXMLContextPtr_t createDiscardContext() = 0;
44
45 private:
46 RVNGInputStreamPtr_t m_input;
47 RVNGInputStreamPtr_t m_package;
48 };
49
50 } // namespace libetonyek
51
52 #endif // IWORKPARSER_H_INCLUDED
53
54 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
libetonyek
Definition: IWORKBezierElement.cpp:18
libetonyek::IWORKParser
Definition: IWORKParser.h:23
libetonyek::IWORKParser::getInput
RVNGInputStreamPtr_t & getInput()
Definition: IWORKParser.cpp:132
libetonyek::IWORKParser::createDiscardContext
virtual IWORKXMLContextPtr_t createDiscardContext()=0
libetonyek::IWORKParser::m_package
RVNGInputStreamPtr_t m_package
Definition: IWORKParser.h:47
libetonyek::IWORKParser::parse
bool parse()
Definition: IWORKParser.cpp:53
libetonyek::IWORKXMLContextPtr_t
boost::shared_ptr< IWORKXMLContext > IWORKXMLContextPtr_t
Definition: IWORKXMLContext.h:18
libetonyek::IWORKParser::m_input
RVNGInputStreamPtr_t m_input
Definition: IWORKParser.h:46
libetonyek::IWORKParser::IWORKParser
IWORKParser(const IWORKParser &)
libetonyek::IWORKParser::getPackage
RVNGInputStreamPtr_t & getPackage()
Definition: IWORKParser.cpp:142
libetonyek::IWORKParser::~IWORKParser
virtual ~IWORKParser()=0
Definition: IWORKParser.cpp:49
libetonyek::IWORKParser::operator=
IWORKParser & operator=(const IWORKParser &)
libetonyek::IWORKParser::getTokenizer
virtual const IWORKTokenizer & getTokenizer() const =0
libetonyek::RVNGInputStreamPtr_t
boost::shared_ptr< librevenge::RVNGInputStream > RVNGInputStreamPtr_t
Definition: libetonyek_utils.h:111
libetonyek::IWORKTokenizer
Definition: IWORKTokenizer.h:16
libetonyek_utils.h
libetonyek::IWORKParser::createDocumentContext
virtual IWORKXMLContextPtr_t createDocumentContext()=0
IWORKXMLContext.h