SpellingsDB is created in a cache directory

The path parameter of the SpellingsDB constructor has been changed to
denote the path of the cache directory where spellings databases for
different ZIM archive should be stored. The filename of the spellings
database is generated from the ZIM archive UUID and the current version
of the spellings database implementation.
This commit is contained in:
Veloman Yunkan
2025-10-06 16:24:48 +04:00
parent 39672f0532
commit 5c8aa240ad
3 changed files with 20 additions and 6 deletions

View File

@@ -41,7 +41,7 @@ namespace kiwix
class SpellingsDB
{
public: // functions
SpellingsDB(const zim::Archive& archive, std::filesystem::path path);
SpellingsDB(const zim::Archive& archive, std::filesystem::path cacheDirPath);
~SpellingsDB();
SpellingsDB(const SpellingsDB& ) = delete;