Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

regina::CompressionBuffer Class Reference
[General Utility Classes]

An output stream buffer that compresses data as it is written. More...

#include <zstream.h>

Inheritance diagram for regina::CompressionBuffer:

regina::ZBuffer List of all members.

Public Member Functions

 CompressionBuffer ()
 Creates a new compression stream buffer.

 CompressionBuffer (const char *path)
 Creates a new compression stream buffer that writes to the given file.

int open (const char *path)
 Opens the given file for compressed writing.


Detailed Description

An output stream buffer that compresses data as it is written.

The standard zlib compression library is used.

This buffer is designed for use with standard C++ I/O streams.

This stream buffer should not be used for input.

Python:
Not present.


Constructor & Destructor Documentation

regina::CompressionBuffer::CompressionBuffer  )  [inline]
 

Creates a new compression stream buffer.

regina::CompressionBuffer::CompressionBuffer const char *  path  )  [inline]
 

Creates a new compression stream buffer that writes to the given file.

The underlying file will be opened automatically.

Parameters:
path the pathname of the new file to open.


Member Function Documentation

int regina::CompressionBuffer::open const char *  path  )  [inline]
 

Opens the given file for compressed writing.

If a file is already open, it will be closed before the new file is opened.

Parameters:
path the pathname of the new file to open.
Returns:
0 on success, or zEOF on error.


The documentation for this class was generated from the following file:
Copyright © 1999-2004, Ben Burton
This software is released under the GNU General Public License.
For further information, or to submit a bug or other problem, please contact Ben Burton (bab@debian.org).