MOOS 0.2375
/home/toby/moos-ivp/MOOS-2375-Oct0611/Essentials/pLogger/Zipper.h
Go to the documentation of this file.
00001 /*
00002  *  Zipper.h
00003  *  MOOS
00004  *
00005  *  Created by pnewman on 20/08/2009.
00006  *  Copyright 2009 P Newman. All rights reserved.
00007  *
00008  */
00009 
00010 #ifndef CZIPPERH
00011 #define CZIPPERH
00012 
00013 #include <MOOSGenLib/MOOSThread.h>
00014 #include <string>
00015 #include <MOOSGenLib/MOOSLock.h>
00016 
00023 class CZipper
00024         {
00025         public:
00026                 
00033                 bool Start(const std::string sFileBaseName);
00034                 
00040                 bool Stop();
00041                 
00048                 bool IsRunning();
00049                 
00056                 bool Push(const std::string & sStr);
00057 
00058 
00059                 //worker function
00060                 bool DoZipLogging();
00061                 
00062         protected:
00063 
00064                 CMOOSLock   m_Lock;
00065                 CMOOSThread m_Thread;
00066                 
00067                 
00068                 std::list<std::string> m_ZipBuffer;
00069                 std::string m_sFileName;
00070                 
00071         };
00072 
00073 #endif
00074 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines