4 |
|
// |
5 |
|
// $Id$ |
6 |
|
|
7 |
< |
#ifndef _GzipWriter_hpp_ |
8 |
< |
#define _GzipWriter_hpp_ |
7 |
> |
#ifndef _Zlib_GzipWriter_hpp_ |
8 |
> |
#define _Zlib_GzipWriter_hpp_ |
9 |
|
|
10 |
|
#include <cxx/platform.hpp> |
11 |
|
|
19 |
|
#include <errno.h> |
20 |
|
#include <zlib.h> |
21 |
|
|
22 |
+ |
namespace Zlib |
23 |
+ |
{ |
24 |
+ |
|
25 |
|
class Error : public api::Error |
26 |
|
{ |
27 |
|
int code; |
42 |
|
|
43 |
|
virtual cse::String GetMessage() const |
44 |
|
{ |
45 |
< |
return _S<ios::String>() << "Zlib[#" << code << "]" << message; |
45 |
> |
return _S<ios::String>() << "Zlib[#" << code << "] " << message; |
46 |
|
} |
47 |
|
}; |
48 |
|
|
72 |
|
virtual void Flush(); |
73 |
|
}; |
74 |
|
|
75 |
< |
#endif//_GzipWriter_hpp_ |
75 |
> |
} |
76 |
> |
|
77 |
> |
#endif//_Zlib_GzipWriter_hpp_ |