zlibcomplete
Simple C++ wrapper for zlib using RAII and std::string with flush.
 All Classes Namespaces Files Functions Enumerations Enumerator Macros Pages
zlibmisc.hpp
Go to the documentation of this file.
1 #ifndef __ZLIBMISC_HPP
2 #define __ZLIBMISC_HPP
3 
15 #include <zlc/zlibbase.hpp>
16 
17 namespace zlibcomplete {
18 
27  class ZLibCompressor : public ZLibBaseCompressor {
28 public:
37  ZLibCompressor(int level = 9, flush_parameter autoFlush = auto_flush, int windowBits = 15);
38  ~ZLibCompressor(void);
52  std::string compress(const std::string& input);
62  std::string finish(void);
63  };
64 
73  class ZLibDecompressor : public ZLibBaseDecompressor {
74 public:
75  ZLibDecompressor(void);
76  ~ZLibDecompressor(void);
85  std::string decompress(const std::string& input);
86  };
87 
88 }
89 
90 #endif
91 
std::string compress(const std::string &input)
Compresses data. Uses std::string for input and output.
Definition: zlibmisc.cpp:17
ZLib decompression class using std::string for input and output.
Definition: zlibmisc.hpp:73
flush_parameter
Definition: zlibbase.hpp:10
ZLibCompressor(int level=9, flush_parameter autoFlush=auto_flush, int windowBits=15)
Definition: zlibmisc.cpp:9
ZLib compression class using std::string for input and output.
Definition: zlibmisc.hpp:27
~ZLibCompressor(void)
Definition: zlibmisc.cpp:14
std::string decompress(const std::string &input)
Definition: zlibmisc.cpp:31
std::string finish(void)
Writes a termination block to the zlib stream indicating the end.
Definition: zlibmisc.cpp:21
Definition: zlibbase.hpp:10
~ZLibDecompressor(void)
Definition: zlibmisc.cpp:28
ZLibDecompressor(void)
Definition: zlibmisc.cpp:25