1 |
// Gzip Writer |
2 |
// |
3 |
// Douglas Thrift |
4 |
// |
5 |
// $Id$ |
6 |
|
7 |
#ifndef _Zlib_GzipWriter_hpp_ |
8 |
#define _Zlib_GzipWriter_hpp_ |
9 |
|
10 |
#include <cxx/platform.hpp> |
11 |
|
12 |
#ifdef MENES_PRAGMA_ONCE |
13 |
#pragma once |
14 |
#endif |
15 |
|
16 |
#include <ios/streams.hpp> |
17 |
|
18 |
#include "Error.hpp" |
19 |
|
20 |
namespace Zlib |
21 |
{ |
22 |
|
23 |
class GzipWriter : public ios::Writer |
24 |
{ |
25 |
gzFile file; |
26 |
public: |
27 |
GzipWriter(const cse::String &path); |
28 |
virtual ~GzipWriter(); |
29 |
virtual size_t Write(const byte_t *data, size_t length); |
30 |
virtual void Flush(); |
31 |
}; |
32 |
|
33 |
} |
34 |
|
35 |
#endif//_Zlib_GzipWriter_hpp_ |