Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
IMPText.h
Go to the documentation of this file.
1
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2
/* libe-book
3
* Version: MPL 2.0 / LGPLv2.1+
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
* Alternatively, the contents of this file may be used under the terms
10
* of the GNU Lesser General Public License Version 2.1 or later
11
* (LGPLv2.1+), in which case the provisions of the LGPLv2.1+ are
12
* applicable instead of those above.
13
*
14
* For further information visit http://libebook.sourceforge.net
15
*/
16
17
#ifndef IMPTEXT_H_INCLUDED
18
#define IMPTEXT_H_INCLUDED
19
20
#include <string>
21
22
class
WPXInputStream;
23
24
namespace
libebook
25
{
26
27
class
IMPCollector;
28
29
class
IMPText
30
{
31
// -Weffc++
32
IMPText
(
const
IMPText
&);
33
IMPText
&
operator=
(
const
IMPText
&);
34
35
public
:
36
IMPText
(WPXInputStream *input,
IMPCollector
*collector);
37
38
bool
parse
();
39
40
private
:
41
void
flushText
();
42
43
private
:
44
WPXInputStream *
const
m_input
;
45
IMPCollector
*
const
m_collector
;
46
47
std::string
m_text
;
48
bool
m_openHeader
;
49
bool
m_openFooter
;
50
};
51
52
}
53
54
#endif // IMPTEXT_H_INCLUDED
55
56
/* vim:set shiftwidth=2 softtabstop=2 expandtab: */
libebook::IMPText::IMPText
IMPText(const IMPText &)
libebook::IMPText::m_input
WPXInputStream *const m_input
Definition:
IMPText.h:44
libebook::IMPText::parse
bool parse()
Definition:
IMPText.cpp:60
libebook::IMPText
Definition:
IMPText.h:29
libebook::IMPText::operator=
IMPText & operator=(const IMPText &)
libebook::IMPText::m_openHeader
bool m_openHeader
Definition:
IMPText.h:48
libebook::IMPText::m_collector
IMPCollector *const m_collector
Definition:
IMPText.h:45
libebook::IMPText::flushText
void flushText()
Definition:
IMPText.cpp:137
libebook::IMPCollector
Definition:
IMPCollector.h:29
libebook::IMPText::m_openFooter
bool m_openFooter
Definition:
IMPText.h:49
libebook::IMPText::m_text
std::string m_text
Definition:
IMPText.h:47
Generated for libe-book by
doxygen
1.8.5