jigdo API

Zibstream Class Reference

Input stream which decompresses data. More...

#include <zstream.hh>

List of all members.


Public Types

typedef uint64 streamsize

Public Member Functions

 Zibstream (unsigned bufSz=64 *1024)
virtual ~Zibstream ()
 Calls close(), which might throw a Zerror exception! Call close() before destroying the object to avoid this.
 Zibstream (bistream &s, unsigned bufSz=64 *1024)
bool is_open () const
void close ()
bistreamgetStream ()
 Get reference to underlying istream.
Zibstreamread (byte *x, unsigned n)
 Input 1 character.
streamsize gcount () const
 Number of characters read by last read().
bool good () const
bool eof () const
bool fail () const
bool bad () const
 operator void * () const
bool operator! () const

Classes

class  Impl
 Interface for gzip and bzip2 implementors. More...

Detailed Description

Input stream which decompresses data.

Analogous to Zobstream, aware of jigdo file formats - expects a number of DATA or BZIP parts at current stream position.


Member Typedef Documentation

typedef uint64 Zibstream::streamsize


Constructor & Destructor Documentation

Zibstream::Zibstream ( unsigned  bufSz = 64*1024  )  [inline, explicit]

virtual Zibstream::~Zibstream (  )  [inline, virtual]

Calls close(), which might throw a Zerror exception! Call close() before destroying the object to avoid this.

References close(), and Zibstream::Impl::end().

Zibstream::Zibstream ( bistream s,
unsigned  bufSz = 64*1024 
) [inline]


Member Function Documentation

bool Zibstream::is_open (  )  const [inline]

Referenced by close(), and good().

void Zibstream::close (  ) 

bistream& Zibstream::getStream (  )  [inline]

Get reference to underlying istream.

streamsize Zibstream::gcount (  )  const [inline]

Number of characters read by last read().

bool Zibstream::good (  )  const [inline]

References is_open().

Referenced by fail(), and read().

bool Zibstream::eof (  )  const [inline]

bool Zibstream::fail (  )  const [inline]

References good().

Referenced by operator void *(), and operator!().

bool Zibstream::bad (  )  const [inline]

Zibstream::operator void * (  )  const [inline]

References fail().

bool Zibstream::operator! (  )  const [inline]

References fail().


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

Generated on Tue Sep 23 14:27:43 2008 for jigdo by  doxygen 1.5.6