Be able to create a OPDSDumper without library and associate it later.

This commit is contained in:
Matthieu Gautier 2018-03-26 21:25:57 +02:00
parent ad92af928b
commit b48428e443
1 changed files with 8 additions and 0 deletions

View File

@ -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;