Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages  

rnaml::GZIPInputStream Class Reference

#include <GZIPInputStream.h>

Inheritance diagram for rnaml::GZIPInputStream:

rnaml::InputStream List of all members.

Public Methods

 GZIPInputStream (FileInputStream *fis)
 Initializes the object.

 GZIPInputStream (int fd)
 Initializes the object.

virtual ~GZIPInputStream ()
 Destroys the object.

virtual xmlcpgInputStreamgetCStructure () const
 Gets the C substructure.

virtual void setCStructure (xmlcpgInputStream *is)
 Sets the C substructure.

virtual bool getEOS () const
 Tests the end of stream indicator of the gzip input stream.

virtual bool getError () const
 Tests the error indicator of the gzip input stream.

virtual const char * getErrorString () const
 Gets the string describing the error.

virtual int read ()
 Reads a character from the gzip input stream.

virtual int read (void *ptr, int nbytes)
 Reads some bytes of data into the location pointed by ptr.

virtual bool close ()
 Closes the gzip input stream.


Private Attributes

xmlcpgGZIPInputStreamis
 The C gzip input stream structure.


Detailed Description

Author:
Martin Larose (larosem@iro.umontreal.ca)
Version:
Id:
GZIPInputStream.h,v 1.1 2003/11/05 18:04:44 larosem Exp


Constructor & Destructor Documentation

rnaml::GZIPInputStream::GZIPInputStream FileInputStream   fis
 

Initializes the object.

The file input stream is freed on successful completion of the function.

Parameters:
fis  the file input stream.

rnaml::GZIPInputStream::GZIPInputStream int    fd
 

Initializes the object.

Parameters:
fd  the file descriptor.

rnaml::GZIPInputStream::~GZIPInputStream   [virtual]
 

Destroys the object.


Member Function Documentation

bool rnaml::GZIPInputStream::close   [virtual]
 

Closes the gzip input stream.

Returns:
false upon successful completion.

Implements rnaml::InputStream.

virtual xmlcpgInputStream* rnaml::GZIPInputStream::getCStructure   const [inline, virtual]
 

Gets the C substructure.

Returns:
the C substructure.

Implements rnaml::InputStream.

bool rnaml::GZIPInputStream::getEOS   [virtual]
 

Tests the end of stream indicator of the gzip input stream.

Returns:
true if it is set.

Implements rnaml::InputStream.

bool rnaml::GZIPInputStream::getError   [virtual]
 

Tests the error indicator of the gzip input stream.

Returns:
true if an error occured.

Implements rnaml::InputStream.

const char * rnaml::GZIPInputStream::getErrorString   [virtual]
 

Gets the string describing the error.

Returns:
the error string.

Implements rnaml::InputStream.

int rnaml::GZIPInputStream::read void *    ptr,
int    nbytes
[virtual]
 

Reads some bytes of data into the location pointed by ptr.

Parameters:
ptr  the location where to store the input.
nbytes  the number of bytes to read.
Returns:
the number of bytes read or 0 on end of stream or -1 on error.

Implements rnaml::InputStream.

int rnaml::GZIPInputStream::read   [virtual]
 

Reads a character from the gzip input stream.

Returns:
the character cast to an int or -1 on end of stream or error.

Implements rnaml::InputStream.

void rnaml::GZIPInputStream::setCStructure xmlcpgInputStream   is [virtual]
 

Sets the C substructure.

Parameters:
is  the xmlcpgInputStream.

Implements rnaml::InputStream.


Member Data Documentation

xmlcpgGZIPInputStream* rnaml::GZIPInputStream::is [private]
 

The C gzip input stream structure.


The documentation for this class was generated from the following files:
Generated on Tue Nov 11 14:59:56 2003 for xmlcpg by doxygen1.2.18