Atlas-C++
Bzip2.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 Stefanus Du Toit, Dmitry Derevyanko
4 
5 // $Id$
6 
7 #ifndef ATLAS_FILTERS_BZIP2_H
8 #define ATLAS_FILTERS_BZIP2_H
9 
10 #include <Atlas/Filter.h>
11 
12 // my version of bzlib.h does not have extern "C" in the header file,
13 // like it should
14 // dmitryd 05/08/200
15 extern "C" {
16 #include <bzlib.h>
17 }
18 
19 namespace Atlas { namespace Filters {
20 
21 class Bzip2 : public Filter
22 {
23  bz_stream incoming;
24  bz_stream outgoing;
25  char buf[4096];
26 
27  public:
28 
29  virtual void begin();
30  virtual void end();
31 
32  virtual std::string encode(const std::string&);
33  virtual std::string decode(const std::string&);
34 };
35 
36 } } // namespace Atlas::Filters
37 
38 #endif // ATLAS_FILTERS_BZIP2_H
Definition: Bzip2.h:21
The Atlas namespace.
Definition: Bridge.h:20
Atlas stream filter.
Definition: Filter.h:29

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.