jigdo API

ZibstreamBz Class Reference

#include <zstream-bz.hh>

Inheritance diagram for ZibstreamBz:

Zibstream::Impl

List of all members.


Public Member Functions

 ZibstreamBz ()
 ~ZibstreamBz ()
virtual unsigned totalOut () const
virtual unsigned totalIn () const
virtual unsigned availOut () const
virtual unsigned availIn () const
virtual byte * nextOut () const
virtual byte * nextIn () const
virtual void setTotalOut (unsigned n)
virtual void setTotalIn (unsigned n)
virtual void setAvailIn (unsigned n)
virtual void setNextIn (byte *n)
virtual void init ()
 Initialize, i.e.
virtual void end ()
 Finalize, i.e.
virtual void reset ()
 Re-init, i.e.
virtual void inflate (byte **nextOut, unsigned *availOut)
 Sets an internal status flag.
virtual bool streamEnd () const
 Check status flag: At stream end?
virtual bool ok () const
 Check status flag: OK?
virtual void throwError () const
 Depending on internal status flag, throw appropriate Zerror.

Static Public Attributes

static const char * bzerrorstrings []

Classes

class  ZibstreamBzError

Constructor & Destructor Documentation

ZibstreamBz::ZibstreamBz (  )  [inline]

ZibstreamBz::~ZibstreamBz (  )  [inline]

References Assert.


Member Function Documentation

virtual unsigned ZibstreamBz::totalOut (  )  const [inline, virtual]

Implements Zibstream::Impl.

virtual unsigned ZibstreamBz::totalIn (  )  const [inline, virtual]

Implements Zibstream::Impl.

virtual unsigned ZibstreamBz::availOut (  )  const [inline, virtual]

Implements Zibstream::Impl.

virtual unsigned ZibstreamBz::availIn (  )  const [inline, virtual]

Implements Zibstream::Impl.

virtual byte* ZibstreamBz::nextOut (  )  const [inline, virtual]

Implements Zibstream::Impl.

virtual byte* ZibstreamBz::nextIn (  )  const [inline, virtual]

Implements Zibstream::Impl.

virtual void ZibstreamBz::setTotalOut ( unsigned  n  )  [inline, virtual]

Implements Zibstream::Impl.

virtual void ZibstreamBz::setTotalIn ( unsigned  n  )  [inline, virtual]

Implements Zibstream::Impl.

virtual void ZibstreamBz::setAvailIn ( unsigned  n  )  [inline, virtual]

Implements Zibstream::Impl.

virtual void ZibstreamBz::setNextIn ( byte *  n  )  [inline, virtual]

Implements Zibstream::Impl.

virtual void ZibstreamBz::init (  )  [inline, virtual]

Initialize, i.e.

inflateInit(). {next,avail}{in,out} must be set up before calling this. Does not throw, sets an internal status flag.

Implements Zibstream::Impl.

References ok().

Referenced by reset().

virtual void ZibstreamBz::end (  )  [inline, virtual]

Finalize, i.e.

inflateEnd(). Does not throw.

Implements Zibstream::Impl.

Referenced by reset().

virtual void ZibstreamBz::reset (  )  [inline, virtual]

Re-init, i.e.

inflateReset()

Implements Zibstream::Impl.

References end(), and init().

virtual void ZibstreamBz::inflate ( byte **  nextOut,
unsigned *  availOut 
) [inline, virtual]

Sets an internal status flag.

Updates nextOut and availOut.

Implements Zibstream::Impl.

virtual bool ZibstreamBz::streamEnd (  )  const [inline, virtual]

Check status flag: At stream end?

Implements Zibstream::Impl.

virtual bool ZibstreamBz::ok (  )  const [inline, virtual]

Check status flag: OK?

Implements Zibstream::Impl.

Referenced by init().

virtual void ZibstreamBz::throwError (  )  const [inline, virtual]

Depending on internal status flag, throw appropriate Zerror.

Never returns.

Implements Zibstream::Impl.

References bzerrorstrings.


Member Data Documentation

const char * ZibstreamBz::bzerrorstrings [static]

Initial value:

 {
  "OK"
  ,"SEQUENCE_ERROR"
  ,"PARAM_ERROR"
  ,"MEM_ERROR"
  ,"DATA_ERROR"
  ,"DATA_ERROR_MAGIC"
  ,"IO_ERROR"
  ,"UNEXPECTED_EOF"
  ,"OUTBUFF_FULL"
  ,"CONFIG_ERROR"
  ,""
  ,""
  ,""
}

Referenced by throwError(), and throwZerrorBz().


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