Atlas-C++
Gzip.h
00001 // This file may be redistributed and modified only under the terms of
00002 // the GNU Lesser General Public License (See COPYING for details).
00003 // Copyright (C) 2000 Dmitry Derevyanko
00004 
00005 // $Id$
00006 
00007 #ifndef ATLAS_FILTERS_GZIP_H
00008 #define ATLAS_FILTERS_GZIP_H
00009 
00010 #include <Atlas/Filter.h>
00011 
00012 #include <zlib.h>
00013 
00014 namespace Atlas { namespace Filters {
00015 
00016 class Gzip : public Filter
00017 {
00018     z_stream incoming;
00019     z_stream outgoing;
00020     unsigned char buf[4096];
00021 
00022     public:
00023 
00024     virtual void begin();
00025     virtual void end();
00026     
00027     virtual std::string encode(const std::string&);
00028     virtual std::string decode(const std::string&);
00029 };
00030 
00031 } } // namespace Atlas::Filters
00032 
00033 #endif // ATLAS_FILTERS_GZIP_H

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.