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 #ifndef ATLAS_FILTERS_GZIP_H 00006 #define ATLAS_FILTERS_GZIP_H 00007 00008 #include <Atlas/Filter.h> 00009 00010 #include <zlib.h> 00011 00012 namespace Atlas { namespace Filters { 00013 00014 class Gzip : public Filter 00015 { 00016 z_stream incoming; 00017 z_stream outgoing; 00018 unsigned char buf[4096]; 00019 00020 public: 00021 00022 virtual void begin(); 00023 virtual void end(); 00024 00025 virtual std::string encode(const std::string&); 00026 virtual std::string decode(const std::string&); 00027 }; 00028 00029 } } // namespace Atlas::Filters 00030 00031 #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.