MOOS 0.2375
|
#include <Zipper.h>
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 |
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
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
sStr | the 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
sFileNameBase | the 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.
CMOOSLock CZipper::m_Lock [protected] |
std::string CZipper::m_sFileName [protected] |
CMOOSThread CZipper::m_Thread [protected] |
std::list<std::string> CZipper::m_ZipBuffer [protected] |