MOOS 0.2375
Public Member Functions | Protected Attributes
CZipper Class Reference

#include <Zipper.h>

Collaboration diagram for CZipper:
Collaboration graph
[legend]

List of all members.

Public Member Functions

bool Start (const std::string sFileBaseName)
bool Stop ()
bool IsRunning ()
bool Push (const std::string &sStr)
bool DoZipLogging ()

Protected Attributes

CMOOSLock m_Lock
CMOOSThread m_Thread
std::list< std::string > m_ZipBuffer
std::string m_sFileName

Detailed Description

Lauches a thread to write strings to a compressed (zipped file) Uses the zlib library to write strings to file. Compressions is done in a background thread

Definition at line 23 of file Zipper.h.


Member Function Documentation

bool CZipper::DoZipLogging ( )

Definition at line 54 of file Zipper.cpp.

bool CZipper::IsRunning ( )

IsRunning returns true if Zipper is active returns true if Zipper is active

Definition at line 37 of file Zipper.cpp.

bool CZipper::Push ( const std::string &  sStr)

Push Push a string onto the Add a string to teh background threads work. This will eventually be added

Parameters:
sStrthe string which should be ashoved into the compressed file

Definition at line 42 of file Zipper.cpp.

bool CZipper::Start ( const std::string  sFileBaseName)

Start Start the zipper specifying name of file. Start the zipper specifying name of file, a .gz will be added

Parameters:
sFileNameBasethe base name of the compressed file. e.g t.txt will become t.txt.gz

Definition at line 25 of file Zipper.cpp.

bool CZipper::Stop ( )

Stop Stop zipping and terminate the compressed file correctly Stop zipping and terminate the compressed file correctly, blocking call

Definition at line 32 of file Zipper.cpp.


Member Data Documentation

Definition at line 64 of file Zipper.h.

std::string CZipper::m_sFileName [protected]

Definition at line 69 of file Zipper.h.

Definition at line 65 of file Zipper.h.

std::list<std::string> CZipper::m_ZipBuffer [protected]

Definition at line 68 of file Zipper.h.


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