X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Foutput.h;h=13dc829adaf7d3968f5f0ac78b60387e7b5db418;hb=HEAD;hp=453260e340a78c46b78eec67b8ec14dd307bef03;hpb=8e3fad222e174b7c659fd3d994d54314657ed989;p=libs%2Fdatafile.git diff --git a/source/output.h b/source/output.h index 453260e..4a4bc81 100644 --- a/source/output.h +++ b/source/output.h @@ -1,21 +1,26 @@ #ifndef MSP_DATAFILE_OUTPUT_H_ #define MSP_DATAFILE_OUTPUT_H_ +#include #include namespace Msp { namespace DataFile { -class Output +class Output: private NonCopyable { private: - IO::Base *out; + IO::Base *out = nullptr; + IO::Base *compressed = nullptr; public: Output(IO::Base &); + ~Output(); - unsigned put(char); - unsigned write(const std::string &); + void set_compressed(); + + std::size_t put(char); + std::size_t write(const std::string &); }; } // namespace DataFile