WvStreams
wvgzipstream.h
1 /* -*- Mode: C++ -*-
2  * Worldvisions Weaver Software:
3  * Copyright (C) 1997-2002 Net Integration Technologies, Inc.
4  *
5  * A Gzip stream.
6  */
7 #ifndef __WVGZIPSTREAM_H
8 #define __WVGZIPSTREAM_H
9 
10 #include "wvgzip.h"
11 
21 {
22 public:
23  WvGzipStream(WvStream *_cloned,
26  : WvEncoderStream(_cloned)
27  {
28  readchain.append(new WvGzipEncoder(readmode), true);
29  writechain.append(new WvGzipEncoder(writemode), true);
30  }
31  virtual ~WvGzipStream() { }
32 
33 public:
34  const char *wstype() const { return "WvGzipStream"; }
35 };
36 
37 
38 #endif /* __WVGZIPSTREAM_H */