OpenDaVINCI  4.15.3
ZipDecompressedData.h
Go to the documentation of this file.
1 
20 #ifndef OPENDAVINCI_CORE_WRAPPER_ZIP_ZIPDECOMPRESSEDDATA_H_
21 #define OPENDAVINCI_CORE_WRAPPER_ZIP_ZIPDECOMPRESSEDDATA_H_
22 
23 #include <iosfwd>
24 #include <map>
25 #include <string>
26 #include <vector>
27 
28 #include <memory>
32 
33 namespace odcore { namespace wrapper { template <odcore::wrapper::CompressionLibraryProducts product> struct CompressionFactoryWorker; } }
34 
35 namespace odcore {
36  namespace wrapper {
37  namespace Zip {
38 
39  using namespace std;
40 
48  private:
49  enum {
50  BUFFER_SIZE = 1024
51  };
52 
53  private:
55 
61  ZipDecompressedData(istream &in);
62 
63  private:
70 
76  ZipDecompressedData& operator=(const ZipDecompressedData &);
77 
78  public:
79  virtual ~ZipDecompressedData();
80 
81  virtual vector<string> getListOfEntries();
82 
83  virtual std::shared_ptr<istream> getInputStreamFor(const string &entry);
84 
85  private:
86  map<string, std::shared_ptr<istream>, odcore::strings::StringComparator> m_mapOfDecompressedEntries;
87 
94  void decompressData(istream &in);
95  };
96 
97  }
98  }
99 } // odcore::wrapper::Zip
100 
101 #endif /*OPENDAVINCI_CORE_WRAPPER_ZIP_ZIPDECOMPRESSEDDATA_H_*/
Definition: DecompressedData.h:40
Definition: StringComparator.h:35
Definition: CompressionFactoryWorker.h:43
Definition: ZipDecompressedData.h:47
Definition: CompressionLibraryProducts.h:34