+ reader::getId() returns a printable string

This commit is contained in:
kelson42 2010-01-28 14:42:58 +00:00
parent d942d614e7
commit 22f701387e
2 changed files with 4 additions and 2 deletions

View File

@ -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 */

View File

@ -6,6 +6,7 @@
#include <zim/article.h>
#include <zim/fileiterator.h>
#include <string>
#include <sstream>
using namespace std;