MLBookProc 2.1
Loading...
Searching...
No Matches
BookInfo.h
1/*
2 * Copyright (C) 2026 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 BOOKINFO_H
17#define BOOKINFO_H
18
19#include <BaseID.h>
20#include <MLBookProc.h>
21#include <UDBase.h>
22
29{
30public:
35 BookInfo(const std::shared_ptr<MLBookProc> &mlbp);
36
57 UDBase
58 getBookInfo(const UDBElement &book_search_result);
59
71 void
72 setDPI(const double &horizontal_dpi = double(72.0),
73 const double &vertical_dpi = double(72.0));
74
79 double
81
87 double
89
90private:
91 UDBase
92 bookInfo(const std::filesystem::path &p, const UDBElement &path);
93
94 std::shared_ptr<MLBookProc> mlbp;
95
96 double horizontal_dpi = 72.0;
97 double vertical_dpi = 72.0;
98
99 BaseID bid;
100};
101
102#endif // BOOKINFO_H
The BaseID class.
Definition BaseID.h:28
double getHorizontalDPI()
double getVerticalDPI()
BookInfo(const std::shared_ptr< MLBookProc > &mlbp)
BookInfo constructor.
void setDPI(const double &horizontal_dpi=double(72.0), const double &vertical_dpi=double(72.0))
UDBase getBookInfo(const UDBElement &book_search_result)