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 */
A stream implementing Gzip compression and decompression.
Definition: wvgzipstream.h:20
WvEncoderStream chains a series of encoders on the input and output ports of the underlying stream to...
WvEncoderStream(WvStream *cloned)
Creates an encoder stream.
WvEncoderChain readchain
Encoder chain through which input data is passed.
WvEncoderChain writechain
Encoder chain through which output data is passed.
Unified support for streams, that is, sequences of bytes that may or may not be ready for read/write ...
Definition: wvstream.h:24
void append(WvEncoder *enc, bool autofree)
Appends an encoder to the tail of the chain.
Definition: wvencoder.cc:312
An encoder implementing Gzip encryption and decryption.
Definition: wvgzip.h:35