join 1.0
lightweight network framework library
Loading...
Searching...
No Matches
join::Zstream Class Reference

zlib stream. More...

#include <zstream.hpp>

Inheritance diagram for join::Zstream:
Collaboration diagram for join::Zstream:

Public Types

enum  Format { Deflate = -MAX_WBITS , Zlib = MAX_WBITS , Gzip = MAX_WBITS + 16 }
 data format. More...
 

Public Member Functions

 Zstream (std::iostream &stream, Format format=Zlib)
 create the zlib stream instance.
 
 Zstream (const Zstream &other)=delete
 copy constructor.
 
Zstreamoperator= (const Zstream &other)=delete
 copy assignment operator.
 
 Zstream (Zstream &&other)
 move constructor.
 
Zstreamoperator= (Zstream &&other)
 move assignment operator.
 
virtual ~Zstream ()=default
 destroy the zlib stream instance.
 

Protected Attributes

Zstreambuf _zbuf
 zlib stream buffer
 

Detailed Description

zlib stream.

Member Enumeration Documentation

◆ Format

data format.

Enumerator
Deflate 

use the deflate compressed data format.

Zlib 

use the zlib compressed data format.

Gzip 

use the gzip compressed data format.

Constructor & Destructor Documentation

◆ Zstream() [1/3]

Zstream::Zstream ( std::iostream & stream,
Format format = Zlib )

create the zlib stream instance.

Parameters
streamconcrete stream.
formatcompressed data format.

◆ Zstream() [2/3]

join::Zstream::Zstream ( const Zstream & other)
delete

copy constructor.

Parameters
otherother object to copy.

◆ Zstream() [3/3]

Zstream::Zstream ( Zstream && other)

move constructor.

Parameters
otherother object to move.

◆ ~Zstream()

virtual join::Zstream::~Zstream ( )
virtualdefault

destroy the zlib stream instance.

Member Function Documentation

◆ operator=() [1/2]

Zstream & join::Zstream::operator= ( const Zstream & other)
delete

copy assignment operator.

Parameters
otherother object to assign.
Returns
current object.

◆ operator=() [2/2]

Zstream & Zstream::operator= ( Zstream && other)

move assignment operator.

Parameters
otherother object to assign.
Returns
current object.

Member Data Documentation

◆ _zbuf

Zstreambuf join::Zstream::_zbuf
protected

zlib stream buffer


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