86 const double &coef_coincedence);
111 std::filesystem::path
169 std::filesystem::path
194 const std::filesystem::path &coll_base_path,
195 const std::filesystem::path &anchor_file);
205 loadCollectionLegacy(
const std::vector<char> &buf);
208 parseFileEntryLegacy(
const std::string &buf,
const std::string &books_path);
211 parseBookEntryLegacy(
const std::string &buf,
212 std::vector<UDBElement> &result);
215 searchElement(std::function<
void(
const UDBElement &, UDBase &)>
216 search_function)
override;
219 searchFunc(
const UDBElement &el, UDBase *result,
220 const std::vector<std::tuple<
221 UDBElement, std::function<
bool(
const UDBElement &book_el,
222 const UDBElement &to_search)>>>
226 authorSearch(
const UDBElement &book_el,
const UDBElement &to_search,
227 const double &coef_coincidence);
230 bookSearch(
const UDBElement &book_el,
const UDBElement &to_search,
231 const double &coef_coincidence);
234 sequenceSearch(
const UDBElement &book_el,
const UDBElement &to_search,
235 const std::string &name,
const std::string &number,
236 const std::string &content,
const double &coef_coincidence);
239 genreSearch(
const UDBElement &book_el,
const UDBElement &to_search,
240 const double &coef_coincidence);
242 std::vector<UDBElement *>
243 searchFile(
const std::vector<UDBElement> &src,
const std::string &file_path);
252 searchLineFunc(
const std::string &to_search,
const std::string &source,
253 const double &coef_coincidence,
254 const Normalization &variant = Normalization::Other);
257 normalizeString(std::string &str,
const Normalization &variant);
260 booksQuantity(
const std::vector<UDBElement> &items);
263 filesQuantity(
const std::vector<UDBElement> &items);
266 searchInNotes(
const std::vector<UDBElement> &src,
267 const std::shared_ptr<NotesKeeper> ¬es);
270 getFiles(
const std::vector<UDBElement> &src);
273 listAuthors(
const std::vector<UDBElement> &src,
274 std::vector<UDBElement> *result);
277 setRelativePath(std::vector<UDBElement> &src,
278 const std::filesystem::path &base_path);
281 setAbsolutePath(std::vector<UDBElement> &src,
282 const std::filesystem::path &base_path);
284 std::shared_ptr<MLBookProc> mlbp;
286 bool cancel_search =
false;
288 std::filesystem::path current_base_path;
292 std::shared_mutex base_mtx;