LIBRCSC Docs
Documentation for HELIOS's BASE LIBRCSC library for RoboCup 2D Simulation League.
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Public Member Functions | List of all members
rcsc::gzifilterstream Class Reference

gzip filtering input stream class. More...

#include <gzfilterstream.h>

Inheritance diagram for rcsc::gzifilterstream:
Inheritance graph
[legend]
Collaboration diagram for rcsc::gzifilterstream:
Collaboration graph
[legend]

Public Member Functions

 gzifilterstream (std::streambuf &src, int level=gzfilterstreambuf::DEFAULT_COMPRESSION, std::size_t buf_size=8192)
 constructor with another stream buffer More...
 
 gzifilterstream (std::istream &src, int level=gzfilterstreambuf::DEFAULT_COMPRESSION, std::size_t buf_size=8192)
 constructor with another stream More...
 
bool setLevel (const int level)
 change complession level More...
 

Detailed Description

gzip filtering input stream class.

Constructor & Destructor Documentation

◆ gzifilterstream() [1/2]

rcsc::gzifilterstream::gzifilterstream ( std::streambuf &  src,
int  level = gzfilterstreambuf::DEFAULT_COMPRESSION,
std::size_t  buf_size = 8192 
)
explicit

constructor with another stream buffer

Parameters
srcanother stream buffer to be filtered
levelgzip compression level
buf_sizeallocated size of internal buffer

◆ gzifilterstream() [2/2]

rcsc::gzifilterstream::gzifilterstream ( std::istream &  src,
int  level = gzfilterstreambuf::DEFAULT_COMPRESSION,
std::size_t  buf_size = 8192 
)
explicit

constructor with another stream

Parameters
srcanother stream to be filtered
levelgzip compression level
buf_sizeallocated size of internal buffer

Member Function Documentation

◆ setLevel()

bool rcsc::gzifilterstream::setLevel ( const int  level)
inline

change complession level

Parameters
levelnew compression level(0-9)
Returns
true if level is validated value, else false.

Compression strategy is set to Z_DEFAULT_STRATEGY automatically.


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