NCBI C++ ToolKit
Classes | Macros | Typedefs | Functions
stream_util.hpp File Reference

C++ I/O stream wrappers to compress/decompress data on-the-fly. More...

#include <util/compress/stream.hpp>
#include <ncbiconf.h>
#include <util/compress/bzip2.hpp>
#include <util/compress/lzo.hpp>
#include <util/compress/zlib.hpp>
#include <util/compress/zlib_cloudflare.hpp>
#include <util/compress/zstd.hpp>
+ Include dependency graph for stream_util.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Go to the SVN repository for this file.

Classes

class  CCompressStream
 CCompressStream –. More...
 
class  CCompressIStream
 CCompressIStream –. More...
 
class  CCompressOStream
 CCompressOStream –. More...
 
class  CDecompressIStream
 CDecompressIStream –. More...
 
class  CDecompressOStream
 CDecompressOStream –. More...
 
class  CManipulatorIProxy< TInputStream, TOutputStream >
 CManipulatorIProxy – base class for manipulators using in operator>>. More...
 
class  CManipulatorOProxy< TInputStream, TOutputStream >
 CManipulatorOProxy – base class for manipulators using in operator<<. More...
 
class  MCompress_Proxy_BZip2
 Classes that we actually put on the stream when using manipulators. More...
 
class  MCompress_Proxy_LZO
 
class  MCompress_Proxy_Zip
 
class  MCompress_Proxy_GZipFile
 
class  MCompress_Proxy_ZipCloudflare
 
class  MCompress_Proxy_GZipCloudflareFile
 
class  MCompress_Proxy_Zstd
 
class  MDecompress_Proxy_BZip2
 
class  MDecompress_Proxy_LZO
 
class  MDecompress_Proxy_Zip
 
class  MDecompress_Proxy_GZipFile
 
class  MDecompress_Proxy_ConcatenatedGZipFile
 
class  MDecompress_Proxy_ZipCloudflare
 
class  MDecompress_Proxy_GZipCloudflareFile
 
class  MDecompress_Proxy_Zstd
 

Macros

#define MCompress_BZip2   MCompress_Proxy_BZip2()
 Manipulator definitions. More...
 
#define MCompress_LZO   MCompress_Proxy_LZO()
 
#define MCompress_Zip   MCompress_Proxy_Zip()
 
#define MCompress_GZipFile   MCompress_Proxy_GZipFile()
 
#define MCompress_ZipCloudflare   MCompress_Proxy_ZipCloudflare()
 
#define MCompress_GZipCloudflareFile   MCompress_Proxy_GZipCloudflareFile()
 
#define MCompress_Zstd   MCompress_Proxy_Zstd()
 
#define MDecompress_BZip2   MDecompress_Proxy_BZip2()
 
#define MDecompress_LZO   MDecompress_Proxy_LZO()
 
#define MDecompress_Zip   MDecompress_Proxy_Zip()
 
#define MDecompress_GZipFile   MDecompress_Proxy_GZipFile()
 
#define MDecompress_ConcatenatedGZipFile   MDecompress_Proxy_ConcatenatedGZipFile()
 
#define MDecompress_ZipCloudflare   MDecompress_Proxy_ZipCloudflare()
 
#define MDecompress_GZipCloudflareFile   MDecompress_Proxy_GZipCloudflareFile()
 
#define MDecompress_Zstd   MDecompress_Proxy_Zstd()
 

Typedefs

typedef CManipulatorIProxy< CCompressIStream, CCompressOStreamTCompressIProxy
 Type of compression manipulators for operator>> More...
 
typedef CManipulatorIProxy< CDecompressIStream, CDecompressOStreamTDecompressIProxy
 Type of decompression manipulators for operator>> More...
 
typedef CManipulatorOProxy< CCompressIStream, CCompressOStreamTCompressOProxy
 Type of compression manipulators for operator<<. More...
 
typedef CManipulatorOProxy< CDecompressIStream, CDecompressOStreamTDecompressOProxy
 Type of decompression manipulators for operator<<. More...
 

Functions

template<class T >
string g_GetManipulatorError (T &stream)
 Auxiliary function to get manipulator error. More...
 
TCompressOProxy operator<< (ostream &os, MCompress_Proxy_BZip2 const &)
 
TCompressIProxy operator>> (istream &is, MCompress_Proxy_BZip2 const &)
 
TCompressOProxy operator<< (ostream &os, MCompress_Proxy_LZO const &)
 
TCompressIProxy operator>> (istream &is, MCompress_Proxy_LZO const &)
 
TCompressOProxy operator<< (ostream &os, MCompress_Proxy_Zip const &)
 
TCompressIProxy operator>> (istream &is, MCompress_Proxy_Zip const &)
 
TCompressOProxy operator<< (ostream &os, MCompress_Proxy_ZipCloudflare const &)
 
TCompressIProxy operator>> (istream &is, MCompress_Proxy_ZipCloudflare const &)
 
TCompressOProxy operator<< (ostream &os, MCompress_Proxy_GZipFile const &)
 
TCompressIProxy operator>> (istream &is, MCompress_Proxy_GZipFile const &)
 
TCompressOProxy operator<< (ostream &os, MCompress_Proxy_GZipCloudflareFile const &)
 
TCompressIProxy operator>> (istream &is, MCompress_Proxy_GZipCloudflareFile const &)
 
TCompressOProxy operator<< (ostream &os, MCompress_Proxy_Zstd const &)
 
TCompressIProxy operator>> (istream &is, MCompress_Proxy_Zstd const &)
 
TDecompressOProxy operator<< (ostream &os, MDecompress_Proxy_BZip2 const &)
 
TDecompressIProxy operator>> (istream &is, MDecompress_Proxy_BZip2 const &)
 
TDecompressOProxy operator<< (ostream &os, MDecompress_Proxy_LZO const &)
 
TDecompressIProxy operator>> (istream &is, MDecompress_Proxy_LZO const &)
 
TDecompressOProxy operator<< (ostream &os, MDecompress_Proxy_Zip const &)
 
TDecompressIProxy operator>> (istream &is, MDecompress_Proxy_Zip const &)
 
TDecompressOProxy operator<< (ostream &os, MDecompress_Proxy_ZipCloudflare const &)
 
TDecompressIProxy operator>> (istream &is, MDecompress_Proxy_ZipCloudflare const &)
 
TDecompressOProxy operator<< (ostream &os, MDecompress_Proxy_GZipFile const &)
 
TDecompressIProxy operator>> (istream &is, MDecompress_Proxy_GZipFile const &)
 
TDecompressOProxy operator<< (ostream &os, MDecompress_Proxy_GZipCloudflareFile const &)
 
TDecompressIProxy operator>> (istream &is, MDecompress_Proxy_GZipCloudflareFile const &)
 
TDecompressOProxy operator<< (ostream &os, MDecompress_Proxy_ConcatenatedGZipFile const &)
 
TDecompressIProxy operator>> (istream &is, MDecompress_Proxy_ConcatenatedGZipFile const &)
 
TDecompressOProxy operator<< (ostream &os, MDecompress_Proxy_Zstd const &)
 
TDecompressIProxy operator>> (istream &is, MDecompress_Proxy_Zstd const &)
 

Detailed Description

C++ I/O stream wrappers to compress/decompress data on-the-fly.

CCompressIStream - input compression stream. CCompressOStream - output compression stream. CDecompressIStream - input decompression stream. CDecompressOStream - output decompression stream.

Compression/decompression manipulators: MCompress_BZip2, MDecompress_BZip2 MCompress_LZO, MDecompress_LZO MCompress_Zip, MDecompress_Zip MCompress_GZipFile, MDecompress_GZipFile, MDecompress_ConcatenatedGZipFile MCompress_ZipCloudflare, MDecompress_ZipCloudflare MCompress_GZipCloudflareFile, MDecompress_GZipCloudflareFile, MCompress_Zstd, MDecompress_Zstd

Note
The stream wrappers and manipulators doesn't support setting advanced compression parameters or using dictionaries. You neeed to create stream using algorithm-specific stream processor and tune up all necessary parameters there. See 'stream.hpp': CCompression[IO]Stream.

Definition in file stream_util.hpp.

Modified on Fri May 24 14:51:24 2024 by modify_doxy.py rev. 669887