21#include <BookBaseEntry.h>
22#include <FileParseEntry.h>
23#include <NotesBaseEntry.h>
78 std::vector<BookBaseEntry>
85 std::vector<std::string>
93 std::vector<BookBaseEntry>
112 std::vector<FileParseEntry>
126 static std::filesystem::path
128 const std::shared_ptr<AuxFunc> &af);
142 readFileEntry(
const std::string &base,
size_t &rb);
144 std::vector<BookParseEntry>
145 readBookEntry(
const std::string &entry,
size_t &rb);
148 parseBookEntry(
const std::string &e, std::string &read_val,
size_t &rb);
151 searchLineFunc(
const std::string &to_search,
const std::string &source);
155 std::vector<BookBaseEntry> &result);
158 std::vector<BookBaseEntry> &result);
162 std::vector<BookBaseEntry> &result);
168 std::vector<BookBaseEntry> &result);
171 searchGenre(
const BookBaseEntry &search, std::vector<BookBaseEntry> &result);
173 std::shared_ptr<AuxFunc> af;
175 std::vector<FileParseEntry> base;
176 std::string collection_name;
177 std::filesystem::path collection_path;
183 std::atomic<bool> cancel_search;
std::vector< FileParseEntry > get_base_vector()
Returns copy of inner database vector.
std::vector< BookBaseEntry > booksWithNotes(const std::vector< NotesBaseEntry > ¬es)
Lists all books of current collection, which have notes.
void clearBase()
Unloads collection base from memory.
BaseKeeper(const std::shared_ptr< AuxFunc > &af)
BaseKeeper constructor.
virtual ~BaseKeeper()
BaseKeeper destructor.
void stopSearch()
Stops all search operations.
std::function< void(const double &progr, const double &sz)> auth_show_progr
collectionAuthors() progress callback
Definition BaseKeeper.h:138
void loadCollection(const std::string &col_name)
Loads collection database to memory.
std::vector< std::string > collectionAuthors()
Lists all authors, found in collection.
std::vector< BookBaseEntry > searchBook(const BookBaseEntry &search)
Searches book in collection.
static std::filesystem::path get_books_path(const std::string &collection_name, const std::shared_ptr< AuxFunc > &af)
Returns absolute path to directory containing collection books.
The BookBaseEntry class.
Definition BookBaseEntry.h:30
The FileParseEntry class.
Definition FileParseEntry.h:31