| VRS - The Virtual Rendering System |
| version 3.3 |
00001 /****************************************************************************** 00002 * VRS - The Virtual Rendering System 00003 * Copyright (C) 2000-2004 Computer Graphics Systems Group at the 00004 * Hasso-Plattner-Institute (HPI), Potsdam, Germany. 00005 * 00006 * This library is free software; you can redistribute it and/or modify it 00007 * under the terms of the GNU Lesser General Public License as published by 00008 * the Free Software Foundation; either version 2.1 of the License, or (at 00009 * your option) any later version. This library is distributed in the hope 00010 * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied 00011 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU Lesser General Public License for more details. You should have received 00013 * a copy of the GNU Lesser+ General Public License along with this library; if 00014 * not, write to the FreeSoftware Foundation, Inc., 59 Temple Place, Suite 330, 00015 * Boston, MA, 02111-1307, USA. 00016 ******************************************************************************/ 00017 00018 // $Id: zipfilecreator.h 6100 2007-10-24 08:17:21Z Matthias_Trapp $ 00019 // $Date: 2007-10-24 10:17:21 +0200 (Wed, 24 Oct 2007) $ 00020 // $Revision: 6100 $ 00021 // $State$ 00022 // $Author: Matthias_Trapp $ 00023 // 00024 // $Log$ 00025 // Revision 1.1 2005/11/18 15:25:06 baumann 00026 // ZipFileCreator added 00027 // 00028 00029 #ifndef VRS_IO_ZIPFILECREATOR_H 00030 #define VRS_IO_ZIPFILECREATOR_H 00031 00032 #include <vrs/sharedobj.h> 00033 00034 namespace VRS { 00035 00037 class VRS_CORE_API ZipFileCreator : 00038 public SharedObj 00039 { 00040 public: 00041 VRS_TYPEINFO(ZipFileCreator, SharedObj); 00042 00044 ZipFileCreator( 00045 const std::string& zipFileName, 00046 bool append = false 00047 ); 00048 00050 virtual ~ZipFileCreator(); 00051 00054 virtual bool isValid() const; 00055 00060 virtual bool add( 00061 const std::string& localFileName, 00062 const std::string& fileNameInZipFile = std::string() 00063 ); 00064 00068 static void zipDirectory( 00069 const std::string& directory, 00070 const std::string& zipFilename 00071 ); 00072 00073 private: 00074 class Impl; 00075 SO<Impl> m_impl; 00076 }; // class ZipFileCreator 00077 00078 } // namespace VRS 00079 00080 #endif // VRS_IO_ZIPFILECREATOR_H