rosbag::BZ2Stream Class Reference

#include <stream.h>

Inheritance diagram for rosbag::BZ2Stream:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 BZ2Stream (ChunkedFile *file)
void decompress (uint8_t *dest, unsigned int dest_len, uint8_t *source, unsigned int source_len)
CompressionType getCompressionType () const
void read (void *ptr, size_t size)
void startRead ()
void startWrite ()
void stopRead ()
void stopWrite ()
void write (void *ptr, size_t size)

Private Attributes

int block_size_100k_
 compression block size (1-9; 9 default). 9 is best compression, most memory
int bzerror_
 last error from bzlib
BZFILE * bzfile_
 bzlib compressed file stream
int verbosity_
 level of debugging output (0-4; 0 default). 0 is silent, 4 is max verbose debugging output
int work_factor_
 compression behavior for worst case, highly repetitive data (0-250; 30 default)

Detailed Description

BZ2Stream uses libbzip2 (http://www.bzip.org) for reading/writing compressed data in the BZ2 format.

Definition at line 124 of file stream.h.


Constructor & Destructor Documentation

rosbag::BZ2Stream::BZ2Stream ( ChunkedFile file  ) 

Definition at line 45 of file bz2_stream.cpp.


Member Function Documentation

void rosbag::BZ2Stream::decompress ( uint8_t *  dest,
unsigned int  dest_len,
uint8_t *  source,
unsigned int  source_len 
) [virtual]

Implements rosbag::Stream.

Definition at line 143 of file bz2_stream.cpp.

CompressionType rosbag::BZ2Stream::getCompressionType (  )  const [virtual]

Implements rosbag::Stream.

Definition at line 54 of file bz2_stream.cpp.

void rosbag::BZ2Stream::read ( void *  ptr,
size_t  size 
) [virtual]

Implements rosbag::Stream.

Definition at line 109 of file bz2_stream.cpp.

void rosbag::BZ2Stream::startRead (  )  [virtual]

Reimplemented from rosbag::Stream.

Definition at line 95 of file bz2_stream.cpp.

void rosbag::BZ2Stream::startWrite (  )  [virtual]

Reimplemented from rosbag::Stream.

Definition at line 58 of file bz2_stream.cpp.

void rosbag::BZ2Stream::stopRead (  )  [virtual]

Reimplemented from rosbag::Stream.

Definition at line 135 of file bz2_stream.cpp.

void rosbag::BZ2Stream::stopWrite (  )  [virtual]

Reimplemented from rosbag::Stream.

Definition at line 82 of file bz2_stream.cpp.

void rosbag::BZ2Stream::write ( void *  ptr,
size_t  size 
) [virtual]

Implements rosbag::Stream.

Definition at line 72 of file bz2_stream.cpp.


Member Data Documentation

compression block size (1-9; 9 default). 9 is best compression, most memory

Definition at line 143 of file stream.h.

last error from bzlib

Definition at line 147 of file stream.h.

BZFILE* rosbag::BZ2Stream::bzfile_ [private]

bzlib compressed file stream

Definition at line 146 of file stream.h.

level of debugging output (0-4; 0 default). 0 is silent, 4 is max verbose debugging output

Definition at line 142 of file stream.h.

compression behavior for worst case, highly repetitive data (0-250; 30 default)

Definition at line 144 of file stream.h.


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


rosbag
Author(s): Jeremy Leibs (leibs@willowgarage.com), James Bowman (jamesb@willowgarage.com), Ken Conley (kwc@willowgarage.com), and Tim Field (tfield@willowgarage.com)
autogenerated on Fri Jan 11 10:11:44 2013