Update kiwix::book to use libzim structure

Some methods in kiwix::Book uses wrapper structure reader. This usage should
be extended from the native libzim structure zim::Archive
This commit is contained in:
Maneesh P M
2021-07-03 15:16:42 +05:30
committed by Matthieu Gautier
parent b4f7dfa5a2
commit 8b12434ff2
5 changed files with 124 additions and 116 deletions

View File

@ -26,6 +26,10 @@ namespace pugi {
class xml_node;
}
namespace zim {
class Archive;
}
namespace kiwix
{
@ -43,6 +47,7 @@ class Book
bool update(const Book& other);
void update(const Reader& reader);
void update(const zim::Archive& archive);
void updateFromXml(const pugi::xml_node& node, const std::string& baseDir);
void updateFromOpds(const pugi::xml_node& node, const std::string& urlHost);
std::string getHumanReadableIdFromPath() const;