Go to the documentation of this file.00001 #ifndef __NITRO_ZIP_UTILITIES_H__
00002 #define __NITRO_ZIP_UTILITIES_H__
00003
00004 #if !defined( WIN32_PLATFORM ) && !defined( NIX_PLATFORM ) && !defined( MINGW_PLATFORM ) && !defined( CYGWIN_PLATFORM )
00005 #define WIN32_PLATFORM
00006 #endif
00007
00008 #ifdef ZIP_UTILITIES
00009 #if defined( WIN32_PLATFORM ) || defined( MINGW_PLATFORM ) || defined( CYGWIN_PLATFORM )
00010 #define ZIP_UTILITIES_DLL_ENTITY __declspec( dllexport )
00011 #endif
00012
00013 #if defined( NIX_PLATFORM )
00014 #define ZIP_UTILITIES_DLL_ENTITY
00015 #endif
00016 #else
00017 #ifdef WIN32_PLATFORM
00018 #define ZIP_UTILITIES_DLL_ENTITY __declspec( dllimport )
00019 #pragma comment( lib , "zip_utilities.lib" )
00020 #endif
00021
00022 #if defined( CYGWIN_PLATFORM ) || defined( MINGW_PLATFORM )
00023 #define ZIP_UTILITIES_DLL_ENTITY __declspec( dllimport )
00024 #endif
00025
00026 #if defined( NIX_PLATFORM )
00027 #define ZIP_UTILITIES_DLL_ENTITY
00028 #endif
00029 #endif
00030
00031 namespace nitro
00032 {
00045 class ZIP_UTILITIES_DLL_ENTITY ZIPUtilities{
00046 public:
00047
00070 static void ExtractFiles( const std::string & ArchivePath , const std::string & DirectoryPath );
00071
00094 static void ArchiveDirectory( const std::string & ArchivePath , const std::string & DirectoryPath );
00095 };
00096
00097
00098 }
00099
00100 #endif