MLBookProc 2.1
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
33{
34public:
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
61private:
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
The BaseID class.
Definition BaseID.h:28
The DublinCoreParser class.
Definition DublinCoreParser.h:33
The LibArchive class.
Definition LibArchive.h:34
UDBElement parseBook(const std::string &book_content)
UDBase getBookInfo(const std::string &book_content)
ODTParser(const std::shared_ptr< MLBookProc > &mlbp)
ODTParser constructor.