MLBookProc 1.3
Loading...
Searching...
No Matches
DCParser.h
1/*
2 * Copyright (C) 2025 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 DCPARSER_H
17#define DCPARSER_H
18
19#include <AuxFunc.h>
20#include <XMLParser.h>
21
33class __attribute__((deprecated)) DCParser : public XMLParser
34{
35public:
40 DCParser(const std::shared_ptr<AuxFunc> &af);
41
51 std::string
52 dcTitle(const std::string &dc_file_content, const std::vector<XMLTag> &tgv);
53
63 std::string
64 dcAuthor(const std::string &dc_file_content, const std::vector<XMLTag> &tgv);
65
75 std::string
76 dcGenre(const std::string &dc_file_content, const std::vector<XMLTag> &tgv);
77
88 std::string
89 dcDate(const std::string &dc_file_content, const std::vector<XMLTag> &tgv);
90
101 std::string
102 dcLanguage(const std::string &dc_file_content,
103 const std::vector<XMLTag> &tgv);
104
115 std::string
116 dcPublisher(const std::string &dc_file_content,
117 const std::vector<XMLTag> &tgv);
118
129 std::string
130 dcIdentifier(const std::string &dc_file_content,
131 const std::vector<XMLTag> &tgv);
132
143 std::string
144 dcSource(const std::string &dc_file_content, const std::vector<XMLTag> &tgv);
145
156 std::string
157 dcDescription(const std::string &dc_file_content,
158 const std::vector<XMLTag> &tgv);
159
160private:
161 std::shared_ptr<AuxFunc> af;
162};
163
164#endif // DCPARSER_H
std::string dcGenre(const std::string &dc_file_content, const std::vector< XMLTag > &tgv)
Gets book genre.
std::string dcDescription(const std::string &dc_file_content, const std::vector< XMLTag > &tgv)
Gets book description.
std::string dcIdentifier(const std::string &dc_file_content, const std::vector< XMLTag > &tgv)
Gets book identifier.
std::string dcDate(const std::string &dc_file_content, const std::vector< XMLTag > &tgv)
Gets book creation date.
std::string dcAuthor(const std::string &dc_file_content, const std::vector< XMLTag > &tgv)
Gets book author.
std::string dcSource(const std::string &dc_file_content, const std::vector< XMLTag > &tgv)
Gets book source.
std::string dcPublisher(const std::string &dc_file_content, const std::vector< XMLTag > &tgv)
Gets file publisher.
std::string dcLanguage(const std::string &dc_file_content, const std::vector< XMLTag > &tgv)
Gets book language.
DCParser(const std::shared_ptr< AuxFunc > &af)
DCParser constructor.
std::string dcTitle(const std::string &dc_file_content, const std::vector< XMLTag > &tgv)
Gets book title.
XMLParser(const std::shared_ptr< AuxFunc > &af)
XMLParser constructor.