MLPlugin 1.0
Loading...
Searching...
No Matches
Bases.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 BASES_H
17#define BASES_H
18
19#include <BaseKeeper.h>
20#include <BookmarksKeeper.h>
21#include <GenreBase.h>
22#include <MLBookProc.h>
23#include <NotesKeeper.h>
24
31class Bases
32{
33public:
34 Bases();
35
48 Bases(const std::shared_ptr<MLBookProc> &mlbp,
49 const std::shared_ptr<BaseKeeper> &base_keeper,
50 const std::shared_ptr<BookmarksKeeper> &bookmarks,
51 const std::shared_ptr<NotesKeeper> &notes,
52 const std::shared_ptr<GenreBase> &genres_base);
53
59 Bases(const Bases &other);
60
66 Bases(Bases &&other);
67
73 Bases &
74 operator=(const Bases &other);
75
81 Bases &
82 operator=(Bases &&other);
83
87 std::shared_ptr<MLBookProc> mlbp;
88
92 std::shared_ptr<BaseKeeper> base_keeper;
93
98 std::shared_ptr<BookmarksKeeper> bookmarks;
99
103 std::shared_ptr<NotesKeeper> notes;
104
108 std::shared_ptr<GenreBase> genres_base;
109};
110
111#endif // BASES_H
Bases & operator=(const Bases &other)
operator =
std::shared_ptr< NotesKeeper > notes
Smart poinet to NotesKeeper object (see MLBookProc documentation).
Definition Bases.h:103
Bases(Bases &&other)
Move constructor.
Bases & operator=(Bases &&other)
operator =
std::shared_ptr< MLBookProc > mlbp
Smart pointer to MLBookProc object (see MLBookProc documentation).
Definition Bases.h:87
std::shared_ptr< GenreBase > genres_base
Smart pointer to GenreBase object.
Definition Bases.h:108
std::shared_ptr< BookmarksKeeper > bookmarks
Smart pointer to BookmarksKeeper object (see MLBookProc documentation).
Definition Bases.h:98
Bases(const Bases &other)
Copy constructor.
std::shared_ptr< BaseKeeper > base_keeper
Smart pointer to BaseKeeper (see MLBookProc documentation).
Definition Bases.h:92
Bases(const std::shared_ptr< MLBookProc > &mlbp, const std::shared_ptr< BaseKeeper > &base_keeper, const std::shared_ptr< BookmarksKeeper > &bookmarks, const std::shared_ptr< NotesKeeper > &notes, const std::shared_ptr< GenreBase > &genres_base)
Bases constructor.