zlibcomplete
Simple C++ wrapper for zlib using RAII and std::string with flush.
 All Classes Namespaces Files Functions Enumerations Enumerator Macros Pages
gzipcomplete.hpp
Go to the documentation of this file.
1 #ifndef __GZIPCOMPLETE_HPP
2 #define __GZIPCOMPLETE_HPP
3 
15 #include <zlc/zlibbase.hpp>
16 
20 namespace zlibcomplete {
29  class GZipCompressor : public ZLibBaseCompressor {
30 public:
39  GZipCompressor(int level = 9, flush_parameter autoFlush = auto_flush, int windowBits = 15);
53  std::string compress(const std::string& input);
63  std::string finish(void);
64  };
65 
74  class GZipDecompressor : public ZLibBaseDecompressor {
75 public:
76  GZipDecompressor(void);
77  ~GZipDecompressor(void);
78 
89  std::string decompress(const std::string& input);
90  };
91 
92 }
93 
94 #endif
~GZipDecompressor(void)
Definition: gzipcomplete.cpp:25
GZipDecompressor(void)
Definition: gzipcomplete.cpp:22
GZipCompressor(int level=9, flush_parameter autoFlush=auto_flush, int windowBits=15)
Definition: gzipcomplete.cpp:9
std::string decompress(const std::string &input)
Decompression function for gzip using std::string.
Definition: gzipcomplete.cpp:28
std::string compress(const std::string &input)
gzip compression main method using std::string for input and output.
Definition: gzipcomplete.cpp:14
flush_parameter
Definition: zlibbase.hpp:10
GZip decompression class using std::string for input and output.
Definition: gzipcomplete.hpp:74
Definition: zlibbase.hpp:10
GZip compression class using std::string for input and output.
Definition: gzipcomplete.hpp:29
std::string finish(void)
Writes a termination block to the gzip stream indicating the end.
Definition: gzipcomplete.cpp:18