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{
22public:
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
33public:
34 const char *wstype() const { return "WvGzipStream"; }
35};
36
37
38#endif /* __WVGZIPSTREAM_H */
void append(WvEncoder *enc, bool autofree)
Appends an encoder to the tail of the chain.
Definition: wvencoder.cc:312
WvEncoderStream chains a series of encoders on the input and output ports of the underlying stream to...
WvEncoderChain writechain
Encoder chain through which output data is passed.
WvEncoderChain readchain
Encoder chain through which input data is passed.
WvEncoderStream(WvStream *cloned)
Creates an encoder stream.
An encoder implementing Gzip encryption and decryption.
Definition: wvgzip.h:36
A stream implementing Gzip compression and decompression.
Definition: wvgzipstream.h:21
Unified support for streams, that is, sequences of bytes that may or may not be ready for read/write ...
Definition: wvstream.h:25