17#include <zypp-core/base/GzStream>
19#ifdef ENABLE_ZCHUNK_COMPRESSION
20 #include <zypp-core/base/ZckStream>
35 inline std::streamoff _helperInitSize(
const Pathname & file_r )
43 inline shared_ptr<std::istream> streamForFile (
const Pathname & file_r )
45#ifdef ENABLE_ZCHUNK_COMPRESSION
47 return shared_ptr<std::istream>(
new ifzckstream( file_r.asString().c_str() ) );
51 return shared_ptr<std::istream>(
new ifgzstream( file_r.asString().c_str() ) );
Wrapper class for stat/lstat.
String related utilities and Regular expression matching.
ZIP_TYPE zipType(const Pathname &file)
Easy-to use interface to the ZYPP dependency resolver.
detail::fXstream< std::istream, detail::ZChunkStreamBuf > ifzckstream
istream reading zchunk files.
detail::fXstream< std::istream, gzstream_detail::fgzstreambuf > ifgzstream
istream reading gzip files as well as plain files.
std::ostream & operator<<(std::ostream &str, const SerialNumber &obj)
std::string asString(const Patch::Category &obj)
shared_ptr custom deleter doing nothing.