MLBookProc
1.0
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
33
class
BookInfo
34
{
35
public
:
40
BookInfo
(
const
std::shared_ptr<AuxFunc> &af);
41
50
std::shared_ptr<BookInfoEntry>
51
get_book_info
(
const
BookBaseEntry
&bbe);
52
66
void
67
set_dpi
(
const
double
&h_dpi,
const
double
&v_dpi);
68
69
private
:
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
ArchEntry
The ArchEntry class.
Definition
ArchEntry.h:31
BookBaseEntry
The BookBaseEntry class.
Definition
BookBaseEntry.h:30
BookInfo::get_book_info
std::shared_ptr< BookInfoEntry > get_book_info(const BookBaseEntry &bbe)
Retruns information about book.
BookInfo::set_dpi
void set_dpi(const double &h_dpi, const double &v_dpi)
Sets DPI.
BookInfo::BookInfo
BookInfo(const std::shared_ptr< AuxFunc > &af)
BookInfo constructor.
BookInfo.h
Generated by
1.13.2