Rosetta 3.3
Public Types | Public Member Functions
zlib_stream::basic_zip_ostreambase< Elem, Tr, ElemA, ByteT, ByteAT > Class Template Reference

Base class for zip ostreams. More...

#include <zipstream.hpp>

Inheritance diagram for zlib_stream::basic_zip_ostreambase< Elem, Tr, ElemA, ByteT, ByteAT >:
Inheritance graph
[legend]
Collaboration diagram for zlib_stream::basic_zip_ostreambase< Elem, Tr, ElemA, ByteT, ByteAT >:
Collaboration graph
[legend]

List of all members.

Public Types

typedef std::basic_ostream
< Elem, Tr > & 
ostream_reference
typedef basic_zip_streambuf
< Elem, Tr, ElemA, ByteT,
ByteAT > 
zip_streambuf_type

Public Member Functions

 basic_zip_ostreambase (ostream_reference ostream_, size_t level_, EStrategy strategy_, size_t window_size_, size_t memory_level_, size_t buffer_size_)
 Construct a zip stream.
zip_streambuf_typerdbuf ()
 returns the underlying zip ostream object
int get_zerr () const
 returns the zlib error state
uLong get_crc () const
 returns the uncompressed data crc
uLong get_out_size () const
 returns the compressed data size
uLong get_in_size () const
 returns the uncompressed data size

Detailed Description

template<typename Elem, typename Tr = std::char_traits< Elem >, typename ElemA = std::allocator< Elem >, typename ByteT = unsigned char, typename ByteAT = std::allocator< ByteT >>
class zlib_stream::basic_zip_ostreambase< Elem, Tr, ElemA, ByteT, ByteAT >

Base class for zip ostreams.

Note:
Contains a basic_zip_streambuf

Member Typedef Documentation

template<typename Elem , typename Tr = std::char_traits< Elem >, typename ElemA = std::allocator< Elem >, typename ByteT = unsigned char, typename ByteAT = std::allocator< ByteT >>
typedef std::basic_ostream<Elem, Tr>& zlib_stream::basic_zip_ostreambase< Elem, Tr, ElemA, ByteT, ByteAT >::ostream_reference
template<typename Elem , typename Tr = std::char_traits< Elem >, typename ElemA = std::allocator< Elem >, typename ByteT = unsigned char, typename ByteAT = std::allocator< ByteT >>
typedef basic_zip_streambuf< Elem, Tr, ElemA, ByteT, ByteAT > zlib_stream::basic_zip_ostreambase< Elem, Tr, ElemA, ByteT, ByteAT >::zip_streambuf_type

Constructor & Destructor Documentation

template<typename Elem , typename Tr = std::char_traits< Elem >, typename ElemA = std::allocator< Elem >, typename ByteT = unsigned char, typename ByteAT = std::allocator< ByteT >>
zlib_stream::basic_zip_ostreambase< Elem, Tr, ElemA, ByteT, ByteAT >::basic_zip_ostreambase ( ostream_reference  ostream_,
size_t  level_,
EStrategy  strategy_,
size_t  window_size_,
size_t  memory_level_,
size_t  buffer_size_ 
) [inline]

Construct a zip stream.

Note:
More info on the following parameters can be found in the zlib documentation.

References src::init().


Member Function Documentation

template<typename Elem , typename Tr = std::char_traits< Elem >, typename ElemA = std::allocator< Elem >, typename ByteT = unsigned char, typename ByteAT = std::allocator< ByteT >>
uLong zlib_stream::basic_zip_ostreambase< Elem, Tr, ElemA, ByteT, ByteAT >::get_crc ( ) const [inline]

returns the uncompressed data crc

template<typename Elem , typename Tr = std::char_traits< Elem >, typename ElemA = std::allocator< Elem >, typename ByteT = unsigned char, typename ByteAT = std::allocator< ByteT >>
uLong zlib_stream::basic_zip_ostreambase< Elem, Tr, ElemA, ByteT, ByteAT >::get_in_size ( ) const [inline]

returns the uncompressed data size

template<typename Elem , typename Tr = std::char_traits< Elem >, typename ElemA = std::allocator< Elem >, typename ByteT = unsigned char, typename ByteAT = std::allocator< ByteT >>
uLong zlib_stream::basic_zip_ostreambase< Elem, Tr, ElemA, ByteT, ByteAT >::get_out_size ( ) const [inline]

returns the compressed data size

template<typename Elem , typename Tr = std::char_traits< Elem >, typename ElemA = std::allocator< Elem >, typename ByteT = unsigned char, typename ByteAT = std::allocator< ByteT >>
int zlib_stream::basic_zip_ostreambase< Elem, Tr, ElemA, ByteT, ByteAT >::get_zerr ( ) const [inline]
template<typename Elem , typename Tr = std::char_traits< Elem >, typename ElemA = std::allocator< Elem >, typename ByteT = unsigned char, typename ByteAT = std::allocator< ByteT >>
zip_streambuf_type* zlib_stream::basic_zip_ostreambase< Elem, Tr, ElemA, ByteT, ByteAT >::rdbuf ( ) [inline]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines