MLBookProc 1.0
 
Loading...
Searching...
No Matches
NotesBaseEntry.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 NOTESBASEENTRY_H
17#define NOTESBASEENTRY_H
18
19#include <filesystem>
20
28{
29public:
34
42 NotesBaseEntry(const std::string &collection_name,
43 const std::filesystem::path &book_file_full_path,
44 const std::string &book_path);
45
50
55
61
67
71 bool
72 operator==(const NotesBaseEntry &other) const;
73
77 std::string collection_name;
78
82 std::filesystem::path book_file_full_path;
83
88 std::string book_path;
89
93 std::filesystem::path note_file_full_path;
94};
95
96#endif // NOTESBASEENTRY_H
NotesBaseEntry & operator=(const NotesBaseEntry &other)
operator =
NotesBaseEntry()
NotesBaseEntry constructor.
NotesBaseEntry(const std::string &collection_name, const std::filesystem::path &book_file_full_path, const std::string &book_path)
NotesBaseEntry constructor.
bool operator==(const NotesBaseEntry &other) const
operator ==
NotesBaseEntry(const NotesBaseEntry &other)
NotesBaseEntry copy constructor.
std::filesystem::path note_file_full_path
Absolute path to note file.
Definition NotesBaseEntry.h:93
std::string book_path
Relative path to book in file (in case of archive, empty otherwise).
Definition NotesBaseEntry.h:88
std::filesystem::path book_file_full_path
Absolute path to book file.
Definition NotesBaseEntry.h:82
NotesBaseEntry(NotesBaseEntry &&other)
NotesBaseEntry move constructor.
NotesBaseEntry & operator=(NotesBaseEntry &&other)
operator =
std::string collection_name
Collection name.
Definition NotesBaseEntry.h:77