#include <stdexcept>
#include <string>
+#include <sigc++/trackable.h>
#include "base.h"
namespace Msp {
To ensure proper termination of the compressed data stream, the ZlibCompressed
object must be destroyed before the underlying object is closed.
*/
-class ZlibCompressed: public Base
+class ZlibCompressed: public Base, public sigc::trackable
{
private:
struct Private;
unsigned buffer_size;
unsigned char *in_buffer;
unsigned char *out_buffer;
+ bool stream_end;
Private *priv;
public: