jigdo API
Zibstream::Impl Class Reference
Interface for gzip and bzip2 implementors. More...
#include <zstream.hh>

Public Member Functions | |
| virtual | ~Impl () |
| virtual unsigned | totalOut () const =0 |
| virtual unsigned | totalIn () const =0 |
| virtual unsigned | availOut () const =0 |
| virtual unsigned | availIn () const =0 |
| virtual byte * | nextOut () const =0 |
| virtual byte * | nextIn () const =0 |
| virtual void | setTotalOut (unsigned n)=0 |
| virtual void | setTotalIn (unsigned n)=0 |
| virtual void | setAvailIn (unsigned n)=0 |
| virtual void | setNextIn (byte *n)=0 |
| virtual void | init ()=0 |
| Initialize, i.e. | |
| virtual void | end ()=0 |
| Finalize, i.e. | |
| virtual void | reset ()=0 |
| Re-init, i.e. | |
| virtual void | inflate (byte **nextOut, unsigned *availOut)=0 |
| Sets an internal status flag. | |
| virtual bool | streamEnd () const =0 |
| Check status flag: At stream end? | |
| virtual bool | ok () const =0 |
| Check status flag: OK? | |
| virtual void | throwError () const =0 |
| Depending on internal status flag, throw appropriate Zerror. | |
Detailed Description
Interface for gzip and bzip2 implementors.
Constructor & Destructor Documentation
| virtual Zibstream::Impl::~Impl | ( | ) | [inline, virtual] |
Member Function Documentation
| virtual unsigned Zibstream::Impl::totalOut | ( | ) | const [pure virtual] |
Implemented in ZibstreamBz, and ZibstreamGz.
| virtual unsigned Zibstream::Impl::totalIn | ( | ) | const [pure virtual] |
Implemented in ZibstreamBz, and ZibstreamGz.
| virtual unsigned Zibstream::Impl::availOut | ( | ) | const [pure virtual] |
| virtual unsigned Zibstream::Impl::availIn | ( | ) | const [pure virtual] |
| virtual byte* Zibstream::Impl::nextOut | ( | ) | const [pure virtual] |
Implemented in ZibstreamBz, and ZibstreamGz.
| virtual byte* Zibstream::Impl::nextIn | ( | ) | const [pure virtual] |
Implemented in ZibstreamBz, and ZibstreamGz.
| virtual void Zibstream::Impl::setTotalOut | ( | unsigned | n | ) | [pure virtual] |
Implemented in ZibstreamBz, and ZibstreamGz.
| virtual void Zibstream::Impl::setTotalIn | ( | unsigned | n | ) | [pure virtual] |
Implemented in ZibstreamBz, and ZibstreamGz.
| virtual void Zibstream::Impl::setAvailIn | ( | unsigned | n | ) | [pure virtual] |
| virtual void Zibstream::Impl::setNextIn | ( | byte * | n | ) | [pure virtual] |
| virtual void Zibstream::Impl::init | ( | ) | [pure virtual] |
Initialize, i.e.
inflateInit(). {next,avail}{in,out} must be set up before calling this. Does not throw, sets an internal status flag.
Implemented in ZibstreamBz, and ZibstreamGz.
Referenced by Zibstream::read().
| virtual void Zibstream::Impl::end | ( | ) | [pure virtual] |
Finalize, i.e.
inflateEnd(). Does not throw.
Implemented in ZibstreamBz, and ZibstreamGz.
Referenced by Zibstream::close(), Zibstream::read(), and Zibstream::~Zibstream().
| virtual void Zibstream::Impl::reset | ( | ) | [pure virtual] |
Re-init, i.e.
inflateReset()
Implemented in ZibstreamBz, and ZibstreamGz.
Referenced by Zibstream::read().
| virtual void Zibstream::Impl::inflate | ( | byte ** | nextOut, | |
| unsigned * | availOut | |||
| ) | [pure virtual] |
Sets an internal status flag.
Updates nextOut and availOut.
Implemented in ZibstreamBz, and ZibstreamGz.
Referenced by Zibstream::read().
| virtual bool Zibstream::Impl::streamEnd | ( | ) | const [pure virtual] |
Check status flag: At stream end?
Implemented in ZibstreamBz, and ZibstreamGz.
Referenced by Zibstream::read().
| virtual bool Zibstream::Impl::ok | ( | ) | const [pure virtual] |
Check status flag: OK?
Implemented in ZibstreamBz, and ZibstreamGz.
Referenced by Zibstream::close(), and Zibstream::read().
| virtual void Zibstream::Impl::throwError | ( | ) | const [pure virtual] |
Depending on internal status flag, throw appropriate Zerror.
Never returns.
Implemented in ZibstreamBz, and ZibstreamGz.
Referenced by Zibstream::close(), and Zibstream::read().
The documentation for this class was generated from the following file:
Generated on Tue Sep 23 14:27:43 2008 for jigdo by
1.5.6