MLBookProc 1.3
Loading...
Searching...
No Matches
TXTParser.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 TXTPARSER_H
17#define TXTPARSER_H
18
19#include <AuxFunc.h>
20#include <BookInfoEntry.h>
21#include <BookParseEntry.h>
22#include <filesystem>
23
32{
33public:
38 TXTParser(const std::shared_ptr<AuxFunc> &af);
39
49 txtParser(const std::filesystem::path &txt_path);
50
59 std::shared_ptr<BookInfoEntry>
60 txtBookInfo(const std::filesystem::path &txt_path);
61
62private:
63 std::shared_ptr<AuxFunc> af;
64};
65
66#endif // TXTPARSER_H
The BookParseEntry class.
Definition BookParseEntry.h:30
BookParseEntry txtParser(const std::filesystem::path &txt_path)
Parses txt files.
std::shared_ptr< BookInfoEntry > txtBookInfo(const std::filesystem::path &txt_path)
Gets some extra info from txt files.
TXTParser(const std::shared_ptr< AuxFunc > &af)
TXTParser constructor.