From b48428e4436a66dd28a9c7279eb3e6efbc681348 Mon Sep 17 00:00:00 2001 From: Matthieu Gautier Date: Mon, 26 Mar 2018 21:25:57 +0200 Subject: [PATCH] Be able to create a OPDSDumper without library and associate it later. --- include/opds_dumper.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/opds_dumper.h b/include/opds_dumper.h index b76f7abdc..9c5c4beaa 100644 --- a/include/opds_dumper.h +++ b/include/opds_dumper.h @@ -44,6 +44,7 @@ namespace kiwix class OPDSDumper { public: + OPDSDumper() = default; OPDSDumper(Library library); ~OPDSDumper(); @@ -76,6 +77,13 @@ class OPDSDumper */ void setRootLocation(const std::string& rootLocation) { this->rootLocation = rootLocation; } + /** + * Set the library to dump. + * + * @param library The library to dump. + */ + void setLibrary(Library library) { this->library = library; } + protected: kiwix::Library library; std::string id;