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 */
|
/* Return the UID of the ZIM file */
|
||||||
string Reader::getId() {
|
string Reader::getId() {
|
||||||
return string(this->zimFileHandler->getFileheader().getUuid().data,
|
std::ostringstream s;
|
||||||
this->zimFileHandler->getFileheader().getUuid().size());
|
s << this->zimFileHandler->getFileheader().getUuid();
|
||||||
|
return s.str();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Return a random article URL */
|
/* Return a random article URL */
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
#include <zim/article.h>
|
#include <zim/article.h>
|
||||||
#include <zim/fileiterator.h>
|
#include <zim/fileiterator.h>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
#include <sstream>
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue