gzfilebuf Class Reference

A C++ I/O streams interface to the zlib gz* functions. More...

#include <zfstream.hxx>

List of all members.

Public Member Functions

 gzfilebuf ()
 Constructor.
virtual ~gzfilebuf ()
 Destructor.
gzfilebufopen (const char *name, ios_openmode io_mode)
 Open a stream.
gzfilebufattach (int file_descriptor, ios_openmode io_mode)
 Attach to an existing file descriptor.
gzfilebufclose ()
 Close stream.
bool is_open () const
virtual std::streampos seekoff (std::streamoff off, ios_seekdir way, int which)
virtual int sync ()
 sync the stream

Detailed Description

A C++ I/O streams interface to the zlib gz* functions.

Definition at line 56 of file zfstream.hxx.


Member Function Documentation

gzfilebuf * gzfilebuf::attach ( int  file_descriptor,
ios_openmode  io_mode 
)

Attach to an existing file descriptor.

Parameters:
file_descriptor file descriptor
io_mode mode flags
Returns:
file stream

Definition at line 121 of file zfstream.cxx.

bool gzfilebuf::is_open (  )  const [inline]
Returns:
true if open, false otherwise

Definition at line 90 of file zfstream.hxx.

gzfilebuf * gzfilebuf::open ( const char *  name,
ios_openmode  io_mode 
)

Open a stream.

Parameters:
name file name
io_mode mdoe flags
Returns:
file stream

Definition at line 102 of file zfstream.cxx.

std::streampos gzfilebuf::seekoff ( std::streamoff  off,
ios_seekdir  way,
int  which 
) [virtual]
Returns:
stream position

Definition at line 170 of file zfstream.cxx.


The documentation for this class was generated from the following files:

Generated on 23 Feb 2010 for SimGear by  doxygen 1.6.1