Difference between revisions of "Libzim"

Jump to navigation Jump to search
394 bytes added ,  09:45, 26 June 2009
no edit summary
(Created page with 'ZIMlib is the library which implements the access to ZIM files. Use libzim in your own software - like reader applications - to make them ZIM-capable without the need having to d…')
 
Line 1: Line 1:
ZIMlib is the library which implements the access to ZIM files. Use libzim in your own software - like reader applications - to make them ZIM-capable without the need having to dig too much into the ZIM file format.
ZIMlib is the library which implements the access to ZIM files. Use libzim in your own software - like reader applications - to make them ZIM-capable without the need having to dig too much into the ZIM file format.
== Programming ==
zimlib is written in C++.
;Sample: Listing all articles titles inside a ZIM file
<source lang=c>
#include <zim/file.h>
#include <zim/fileiterator.h>
int main(int argc, char* argv[])
{
  zim::File f("wikipedia.zim");
 
 
  for (zim::File::const_iterator it = f.begin(); it != f.end(); ++it)
  {
      std::cout << it->getUrl() << '
';
  }
}
</source>
=== Methods ===

Navigation menu