Class LibXMLDumper

Class Documentation

class kiwix::LibXMLDumper

A tool to dump a Library into a basic library.xml

Public Functions

LibXMLDumper() = default
LibXMLDumper(const Library *library)
~LibXMLDumper()
std::string dumpLibXMLContent(const std::vector<std::string> &bookIds)

Dump the library.xml

Parameters

id – The id of the library.

Returns

The library.xml content.

std::string dumpLibXMLBookmark()

Dump the bookmark of the library.

Returns

The bookmark.xml content.

inline void setBaseDir(const std::string &baseDir)

Set the base directory used.

Parameters

baseDir – the base directory to use.

inline void setLibrary(const Library *library)

Set the library to dump.

Parameters

library – The library to dump.

Protected Attributes

const kiwix::Library *library
std::string baseDir