SoftBookText.h Source File documentation

SoftBookText.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 libe-book 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 SOFTBOOKTEXT_H_INCLUDED
11#define SOFTBOOKTEXT_H_INCLUDED
12
13#include <string>
14
15
16namespace libebook
17{
18
19class SoftBookCollector;
20
21 class SoftBookText
22{
23 // -Weffc++
24 SoftBookText(const SoftBookText &);
25 SoftBookText &operator=(const SoftBookText &);
26
27public:
28 SoftBookText(librevenge::RVNGInputStream *input, SoftBookCollector *collector);
29
30 bool parse();
31
32private:
33 void flushText();
34
35private:
36 librevenge::RVNGInputStream *const m_input;
37 SoftBookCollector *const m_collector;
38
39 std::string m_text;
40 bool m_openHeader;
41 bool m_openFooter;
42};
43
44}
45
46#endif // SOFTBOOKTEXT_H_INCLUDED
47
48/* vim:set shiftwidth=2 softtabstop=2 expandtab: */
libebook::SoftBookCollector
Definition SoftBookCollector.h:23
libebook::SoftBookText
Definition SoftBookText.h:22
libebook::SoftBookText::flushText
void flushText()
Definition SoftBookText.cpp:132
libebook::SoftBookText::SoftBookText
SoftBookText(const SoftBookText &)
libebook::SoftBookText::m_collector
SoftBookCollector *const m_collector
Definition SoftBookText.h:37
libebook::SoftBookText::m_text
std::string m_text
Definition SoftBookText.h:39
libebook::SoftBookText::m_openFooter
bool m_openFooter
Definition SoftBookText.h:41
libebook::SoftBookText::m_input
librevenge::RVNGInputStream *const m_input
Definition SoftBookText.h:36
libebook::SoftBookText::m_openHeader
bool m_openHeader
Definition SoftBookText.h:40
libebook::SoftBookText::operator=
SoftBookText & operator=(const SoftBookText &)
libebook::SoftBookText::parse
bool parse()
Definition SoftBookText.cpp:55
libebook
Definition BBeBCollector.cpp:19