Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

Compressor Class Reference

#include <Compressor.h>

List of all members.

Public Types

enum  COMPRESSORFORMAT { ZIP, GZIP, BZIP2 }
enum  DECOMPRESSORTYPE { INFILE, INSTREAM }

Public Member Functions

 Compressor ()
std::string decompress (const std::string &file, const std::string &contents="content.xml", DECOMPRESSORTYPE type=INFILE)

Static Public Attributes

static const int CASESENSITIVITY = 1
static const int WRITEBUFFERSIZE = 8192

Private Member Functions

std::string _decompressPKZIP (const std::string &file, const std::string &contents="content.xml")
std::string _decompressGZIP (const std::string &file)
std::string _decompressBZIP2 (const std::string &file)


Detailed Description

This class is used to decompress files, and then return a string with the decompressed file. It can decompress PKZIP, GZIP, and BZIP2 formats.


Member Enumeration Documentation

enum Compressor::COMPRESSORFORMAT
 

Enumerator:
ZIP 
GZIP 
BZIP2 

enum Compressor::DECOMPRESSORTYPE
 

Enumerator:
INFILE 
INSTREAM 


Constructor & Destructor Documentation

Compressor::Compressor  )  [inline]
 


Member Function Documentation

std::string Compressor::_decompressBZIP2 const std::string &  file  )  [private]
 

std::string Compressor::_decompressGZIP const std::string &  file  )  [private]
 

std::string Compressor::_decompressPKZIP const std::string &  file,
const std::string &  contents = "content.xml"
[private]
 

_decompressPKZIP(): NOTA BENE: "contents" will normally be "content.xml" for an OASIS PKZIP'd file.

std::string Compressor::decompress const std::string &  file,
const std::string &  contents = "content.xml",
Compressor::DECOMPRESSORTYPE  type = INFILE
 

decompress(): NOTA BENE:

1. contents defaults to "content.xml" which only applies to OASIS format 2. DECOMPRESSORTYPE defaults to "INFILE"


Member Data Documentation

const int Compressor::CASESENSITIVITY = 1 [static]
 

const int Compressor::WRITEBUFFERSIZE = 8192 [static]
 


The documentation for this class was generated from the following files:
Generated on Fri Nov 18 16:24:39 2011 for MADELINE by  doxygen 1.4.4