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 
24 {
25  // -Weffc++
26  IWORKParser(const IWORKParser &);
28 
29 public:
30  IWORKParser(const RVNGInputStreamPtr_t &input, const RVNGInputStreamPtr_t &package);
31  virtual ~IWORKParser() = 0;
32  bool parse();
33 
38 
39  virtual const IWORKTokenizer &getTokenizer() const = 0;
40 
41 protected:
42  void setInput(const RVNGInputStreamPtr_t &input);
43 
44 private:
47 
48 private:
51 };
52 
53 } // namespace libetonyek
54 
55 #endif // IWORKPARSER_H_INCLUDED
56 
57 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
void setInput(const RVNGInputStreamPtr_t &input)
Definition: IWORKParser.cpp:158
Definition: IWORKParser.h:23
std::shared_ptr< IWORKXMLContext > IWORKXMLContextPtr_t
Definition: IWORKXMLContext.h:18
RVNGInputStreamPtr_t & getInput()
Definition: IWORKParser.cpp:148
virtual IWORKXMLContextPtr_t createDiscardContext()=0
RVNGInputStreamPtr_t m_package
Definition: IWORKParser.h:50
bool parse()
Definition: IWORKParser.cpp:52
RVNGInputStreamPtr_t m_input
Definition: IWORKParser.h:49
IWORKParser(const IWORKParser &)
RVNGInputStreamPtr_t & getPackage()
Definition: IWORKParser.cpp:163
std::shared_ptr< librevenge::RVNGInputStream > RVNGInputStreamPtr_t
Definition: libetonyek_utils.h:82
virtual ~IWORKParser()=0
Definition: IWORKParser.cpp:48
IWORKParser & operator=(const IWORKParser &)
virtual const IWORKTokenizer & getTokenizer() const =0
Definition: IWORKTokenizer.h:16
virtual IWORKXMLContextPtr_t createDocumentContext()=0

Generated for libetonyek by doxygen 1.8.6