OpenDaVINCI  4.15.3
odcore::wrapper::CompressionFactory Struct Reference

#include <CompressionFactory.h>

Static Public Member Functions

static std::shared_ptr
< DecompressedData
getContents (istream &in)
 

Detailed Description

A factory for reading compressed files.

It can be used as follows:

fstream fin("zip-file", ios::binary|ios::in);
std::shared_ptr<DecompressedData> dd = CompressionFactory::getContents(fin);
fin.close();
if (dd.isValid()) {
std::shared_ptr<istream> s = dd->getEntryByName("file");
}

CompressionFactoryWorker

Member Function Documentation

std::shared_ptr< DecompressedData > odcore::wrapper::CompressionFactory::getContents ( istream &  in)
static