+#include <msp/io/zlibcompressed.h>
#include "output.h"
using namespace std;
out(&o)
{ }
-unsigned Output::put(char c)
+Output::~Output()
+{
+ delete compressed;
+}
+
+void Output::set_compressed()
+{
+ compressed = new IO::ZlibCompressed(*out, IO::M_WRITE);
+ out = compressed;
+}
+
+size_t Output::put(char c)
{
return out->put(c);
}
-unsigned Output::write(const string &s)
+size_t Output::write(const string &s)
{
return out->write(s);
}