From fc9f3a3a25d56bf0d1a68ce34870e28c2dac77ce Mon Sep 17 00:00:00 2001 From: Kelson Date: Sun, 4 Sep 2016 19:59:22 +0200 Subject: [PATCH] Implement ZIM reader getTags() and getName() --- src/common/kiwix/reader.cpp | 12 ++++++++++++ src/common/kiwix/reader.h | 2 ++ 2 files changed, 14 insertions(+) diff --git a/src/common/kiwix/reader.cpp b/src/common/kiwix/reader.cpp index cb744e61d..d64613fb4 100644 --- a/src/common/kiwix/reader.cpp +++ b/src/common/kiwix/reader.cpp @@ -273,6 +273,18 @@ namespace kiwix { return value; } + string Reader::getName() { + string value; + this->getMetatag("Name", value); + return value; + } + + string Reader::getTags() { + string value; + this->getMetatag("Tags", value); + return value; + } + string Reader::getDescription() { string value; this->getMetatag("Description", value); diff --git a/src/common/kiwix/reader.h b/src/common/kiwix/reader.h index ba039f34e..8e0e3a79f 100644 --- a/src/common/kiwix/reader.h +++ b/src/common/kiwix/reader.h @@ -55,6 +55,8 @@ namespace kiwix { string getTitle(); string getDescription(); string getLanguage(); + string getName(); + string getTags(); string getDate(); string getCreator(); string getPublisher();