mirror of https://github.com/kiwix/libkiwix.git
+ reader::getId() returns a printable string
This commit is contained in:
parent
d942d614e7
commit
22f701387e
|
@ -35,8 +35,9 @@ unsigned int Reader::getArticleCount() {
|
|||
|
||||
/* Return the UID of the ZIM file */
|
||||
string Reader::getId() {
|
||||
return string(this->zimFileHandler->getFileheader().getUuid().data,
|
||||
this->zimFileHandler->getFileheader().getUuid().size());
|
||||
std::ostringstream s;
|
||||
s << this->zimFileHandler->getFileheader().getUuid();
|
||||
return s.str();
|
||||
}
|
||||
|
||||
/* Return a random article URL */
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
#include <zim/article.h>
|
||||
#include <zim/fileiterator.h>
|
||||
#include <string>
|
||||
#include <sstream>
|
||||
|
||||
using namespace std;
|
||||
|
||||
|
|
Loading…
Reference in New Issue