Atlas-C++
Gzip.h
1 // This file may be redistributed and modified only under the terms of
2 // the GNU Lesser General Public License (See COPYING for details).
3 // Copyright (C) 2000 Dmitry Derevyanko
4 
5 // $Id$
6 
7 #ifndef ATLAS_FILTERS_GZIP_H
8 #define ATLAS_FILTERS_GZIP_H
9 
10 #include <Atlas/Filter.h>
11 
12 #include <zlib.h>
13 
14 namespace Atlas { namespace Filters {
15 
16 class Gzip : public Filter
17 {
18  z_stream incoming;
19  z_stream outgoing;
20  unsigned char buf[4096];
21 
22  public:
23 
24  virtual void begin();
25  virtual void end();
26 
27  virtual std::string encode(const std::string&);
28  virtual std::string decode(const std::string&);
29 };
30 
31 } } // namespace Atlas::Filters
32 
33 #endif // ATLAS_FILTERS_GZIP_H
The Atlas namespace.
Definition: Bridge.h:20
Atlas stream filter.
Definition: Filter.h:29
Definition: Gzip.h:16

Copyright 2000-2004 the respective authors.

This document can be licensed under the terms of the GNU Free Documentation License or the GNU General Public License and may be freely distributed under the terms given by one of these licenses.