MLBookProc 1.1
 
Loading...
Searching...
No Matches
BookInfo.h
1/*
2 * Copyright (C) 2024-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
17#ifndef BOOKINFO_H
18#define BOOKINFO_H
19
20#include <AuxFunc.h>
21#include <BookBaseEntry.h>
22#include <BookInfoEntry.h>
23#include <ArchEntry.h>
24#include <memory>
25#include <string>
26
34{
35public:
40 BookInfo(const std::shared_ptr<AuxFunc> &af);
41
50 std::shared_ptr<BookInfoEntry>
52
66 void
67 set_dpi(const double &h_dpi, const double &v_dpi);
68
69private:
70 std::shared_ptr<BookInfoEntry>
71 get_from_archive(const BookBaseEntry &bbe, const std::string &ext);
72
73 bool
74 compare_func(const ArchEntry &ent, const bool &encoding,
75 const std::string &conv_nm,
76 const std::filesystem::path &ch_fbd);
77
78 std::shared_ptr<AuxFunc> af;
79 double h_dpi = 72.0;
80 double v_dpi = 72.0;
81};
82
83#endif // BOOKINFO_H
The ArchEntry class.
Definition ArchEntry.h:31
The BookBaseEntry class.
Definition BookBaseEntry.h:30
std::shared_ptr< BookInfoEntry > get_book_info(const BookBaseEntry &bbe)
Retruns information about book.
void set_dpi(const double &h_dpi, const double &v_dpi)
Sets DPI.
BookInfo(const std::shared_ptr< AuxFunc > &af)
BookInfo constructor.