MLBookProc 1.1
 
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
30class DCParser : public XMLParser
31{
32public:
37 DCParser(const std::shared_ptr<AuxFunc> &af);
38
48 std::string
49 dcTitle(const std::string &dc_file_content, const std::vector<XMLTag> &tgv);
50
60 std::string
61 dcAuthor(const std::string &dc_file_content, const std::vector<XMLTag> &tgv);
62
72 std::string
73 dcGenre(const std::string &dc_file_content, const std::vector<XMLTag> &tgv);
74
85 std::string
86 dcDate(const std::string &dc_file_content, const std::vector<XMLTag> &tgv);
87
98 std::string
99 dcLanguage(const std::string &dc_file_content,
100 const std::vector<XMLTag> &tgv);
101
112 std::string
113 dcPublisher(const std::string &dc_file_content,
114 const std::vector<XMLTag> &tgv);
115
126 std::string
127 dcIdentifier(const std::string &dc_file_content,
128 const std::vector<XMLTag> &tgv);
129
140 std::string
141 dcSource(const std::string &dc_file_content, const std::vector<XMLTag> &tgv);
142
153 std::string
154 dcDescription(const std::string &dc_file_content,
155 const std::vector<XMLTag> &tgv);
156
157private:
158 std::shared_ptr<AuxFunc> af;
159};
160
161#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.