Zip.hpp
Go to the documentation of this file.
1 
6 #pragma once
7 
9 #ifdef ETK_BUILD_MINIZIP
10  extern "C" {
11  #include <minizip/unzip.h>
12  }
13  namespace etk {
17  namespace archive {
21  class Zip : public etk::Archive {
22  private:
23  unzFile m_ctx;
24  unz_global_info m_info;
25  public:
31  Zip(const std::string& _fileName, uint64_t _offset = 0LL);
35  virtual ~Zip();
36  protected:
37  void loadFile(const std::map<std::string, ArchiveContent>::iterator& _it) override;
38  };
39  }
40  }
41 
42 #endif
43 
44 
Zip acces interface (wrapper)
Definition: Zip.hpp:21
basic namespace of the etk library. (it might contain all the etk fuctions/class/structures without m...
Definition: Archive.hpp:16
void loadFile(const std::map< std::string, ArchiveContent >::iterator &_it) override
Request the load in memory of the concerned file.
Zip(const std::string &_fileName, uint64_t _offset=0LL)
constructor of a zip file access
virtual ~Zip()
basic destructor
Access on a zip data file.
Definition: Archive.hpp:90