staticlib_compress  1.2.0
 All Classes Namespaces Files Functions Enumerations
Namespaces | Classes | Enumerations | Functions
staticlib::compress Namespace Reference

Namespaces

namespace  detail

Classes

class  compress_exception
 Exception that is thrown on compression/decompression error. More...
class  deflate_sink
 Sink wrapper that compressed written data using Deflate algorithm. More...
class  inflate_source
 Source wrapper that decompresses deflated data. More...
class  lzma_sink
 Sink wrapper that compressed written data using LZMA algorithm. More...
class  lzma_source
 Source wrapper that decompresses deflated data. More...
class  zip_sink
 Sink wrapper that creates ZIP archives, CRC sum and compression of entries is NOT supported. More...

Enumerations

enum  zip_compression_method

Functions

template<typename Sink , class = typename std::enable_if<!std::is_lvalue_reference<Sink>::value>::type>
deflate_sink< Sink > make_deflate_sink (Sink &&sink)
 Factory function for creating deflate sinks, created object will own the specified sink.
template<typename Sink >
deflate_sink
< sl::io::reference_sink< Sink > > 
make_deflate_sink (Sink &sink)
 Factory function for creating deflate sinks, created object will NOT own the specified sink.
template<typename Source , class = typename std::enable_if<!std::is_lvalue_reference<Source>::value>::type>
inflate_source< Source > make_inflate_source (Source &&source)
 Factory function for creating inflate sources, created object will own the specified source.
template<typename Source >
inflate_source
< sl::io::reference_source
< Source > > 
make_inflate_source (Source &source)
 Factory function for creating inflate sources, created object will NOT own the specified source.
template<typename Sink , class = typename std::enable_if<!std::is_lvalue_reference<Sink>::value>::type>
lzma_sink< Sink > make_lzma_sink (Sink &&sink)
 Factory function for creating lzma sinks, created object will own the specified sink.
template<typename Sink >
lzma_sink
< sl::io::reference_sink< Sink > > 
make_lzma_sink (Sink &sink)
 Factory function for creating lzma sinks, created object will NOT own the specified sink.
template<typename Source , class = typename std::enable_if<!std::is_lvalue_reference<Source>::value>::type>
lzma_source< Source > make_lzma_source (Source &&source)
 Factory function for creating lzma sources, created object will own the specified source.
template<typename Source >
lzma_source
< sl::io::reference_source
< Source > > 
make_lzma_source (Source &source)
 Factory function for creating lzma sources, created object will NOT own the specified source.
template<typename Sink , class = typename std::enable_if<!std::is_lvalue_reference<Sink>::value>::type>
zip_sink< Sink > make_zip_sink (Sink &&sink)
 Factory function for creating zip sinks, created object will own the specified sink.
template<typename Sink >
zip_sink
< sl::io::reference_sink< Sink > > 
make_zip_sink (Sink &sink)
 Factory function for creating zip sinks, created object will NOT own the specified sink.

Enumeration Type Documentation

Function Documentation

template<typename Sink , class = typename std::enable_if<!std::is_lvalue_reference<Sink>::value>::type>
deflate_sink<Sink> staticlib::compress::make_deflate_sink ( Sink &&  sink)

Factory function for creating deflate sinks, created object will own the specified sink.

Parameters
sinkoutput sink
Returns
deflate sink
template<typename Sink >
deflate_sink<sl::io::reference_sink<Sink> > staticlib::compress::make_deflate_sink ( Sink &  sink)

Factory function for creating deflate sinks, created object will NOT own the specified sink.

Parameters
sinkoutput sink
Returns
deflate sink
template<typename Source , class = typename std::enable_if<!std::is_lvalue_reference<Source>::value>::type>
inflate_source<Source> staticlib::compress::make_inflate_source ( Source &&  source)

Factory function for creating inflate sources, created object will own the specified source.

Parameters
sourceinput source
Returns
inflate source
template<typename Source >
inflate_source<sl::io::reference_source<Source> > staticlib::compress::make_inflate_source ( Source &  source)

Factory function for creating inflate sources, created object will NOT own the specified source.

Parameters
sourceinput source
Returns
inflate source
template<typename Sink , class = typename std::enable_if<!std::is_lvalue_reference<Sink>::value>::type>
lzma_sink<Sink> staticlib::compress::make_lzma_sink ( Sink &&  sink)

Factory function for creating lzma sinks, created object will own the specified sink.

Parameters
sinkoutput sink
Returns
lzma sink
template<typename Sink >
lzma_sink<sl::io::reference_sink<Sink> > staticlib::compress::make_lzma_sink ( Sink &  sink)

Factory function for creating lzma sinks, created object will NOT own the specified sink.

Parameters
sinkoutput sink
Returns
lzma sink
template<typename Source , class = typename std::enable_if<!std::is_lvalue_reference<Source>::value>::type>
lzma_source<Source> staticlib::compress::make_lzma_source ( Source &&  source)

Factory function for creating lzma sources, created object will own the specified source.

Parameters
sourceinput source
Returns
lzma source
template<typename Source >
lzma_source<sl::io::reference_source<Source> > staticlib::compress::make_lzma_source ( Source &  source)

Factory function for creating lzma sources, created object will NOT own the specified source.

Parameters
sourceinput source
Returns
lzma source
template<typename Sink , class = typename std::enable_if<!std::is_lvalue_reference<Sink>::value>::type>
zip_sink<Sink> staticlib::compress::make_zip_sink ( Sink &&  sink)

Factory function for creating zip sinks, created object will own the specified sink.

Parameters
sinkoutput sink
Returns
zip sink
template<typename Sink >
zip_sink<sl::io::reference_sink<Sink> > staticlib::compress::make_zip_sink ( Sink &  sink)

Factory function for creating zip sinks, created object will NOT own the specified sink.

Parameters
sinkoutput sink
Returns
zip sink