MLBookProc
2.1
Toggle main menu visibility
Loading...
Searching...
No Matches
ODTParser.h
1
/*
2
* Copyright (C) 2026 Yury Bobylev <bobilev_yury@mail.ru>
3
*
4
* This program is free software: you can redistribute it and/or modify it
5
* under the terms of the GNU General Public License as published by the Free
6
* Software Foundation, version 3.
7
*
8
* This program is distributed in the hope that it will be useful, but WITHOUT
9
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
11
* more details.
12
*
13
* You should have received a copy of the GNU General Public License along with
14
* this program. If not, see <https://www.gnu.org/licenses/>.
15
*/
16
#ifndef ODTPARSER_H
17
#define ODTPARSER_H
18
19
#include <BaseID.h>
20
#include <DublinCoreParser.h>
21
#include <LibArchive.h>
22
#include <MLBookProc.h>
23
#include <UDBase.h>
24
#include <XMLParserCPP.h>
25
32
class
ODTParser
33
{
34
public
:
39
ODTParser
(
const
std::shared_ptr<MLBookProc> &mlbp);
40
41
virtual
~ODTParser
();
42
49
UDBElement
50
parseBook
(
const
std::string &book_content);
51
58
UDBase
59
getBookInfo
(
const
std::string &book_content);
60
61
private
:
62
void
63
normalizeString(std::string &str);
64
65
std::shared_ptr<MLBookProc> mlbp;
66
67
LibArchive
*la;
68
DublinCoreParser
*dc_parser;
69
XMLParserCPP *xml_parser;
70
71
BaseID
bid;
72
};
73
74
#endif
// ODTPARSER_H
BaseID
The BaseID class.
Definition
BaseID.h:28
DublinCoreParser
The DublinCoreParser class.
Definition
DublinCoreParser.h:33
LibArchive
The LibArchive class.
Definition
LibArchive.h:34
ODTParser::parseBook
UDBElement parseBook(const std::string &book_content)
ODTParser::getBookInfo
UDBase getBookInfo(const std::string &book_content)
ODTParser::ODTParser
ODTParser(const std::shared_ptr< MLBookProc > &mlbp)
ODTParser constructor.
ODTParser.h
Generated by
1.17.0