ZipPlatform.h File Reference

ZipPlatform namespace declaration. More...

Go to the source code of this file.

Namespaces

namespace  ZipPlatform

Various operations on files and directories.

All the functions which are returning a bool value, return true when the operation was successful.

ZIP_API bool ZipPlatform::GetCurrentDirectory (CZipString &sz)
 Get the current directory and store it in sz.
ZIP_API bool ZipPlatform::ChangeDirectory (LPCTSTR lpDirectory)
ZIP_API bool ZipPlatform::SetFileAttr (LPCTSTR lpFileName, DWORD uAttr)
ZIP_API bool ZipPlatform::GetFileAttr (LPCTSTR lpFileName, DWORD &uAttr)
ZIP_API bool ZipPlatform::GetFileModTime (LPCTSTR lpFileName, time_t &ttime)
 get the file modification time
ZIP_API bool ZipPlatform::GetFileSize (LPCTSTR lpszFileName, DWORD &dSize)
ZIP_API bool ZipPlatform::SetFileModTime (LPCTSTR lpFileName, time_t ttime)
 set the file modification time
ZIP_API bool ZipPlatform::CreateDirectory (LPCTSTR lpDirectory)
ZIP_API bool ZipPlatform::SetVolLabel (LPCTSTR lpszPath, LPCTSTR lpszLabel)
 lpszPath may point to a file on the device
ZIP_API bool ZipPlatform::ForceDirectory (LPCTSTR lpDirectory)
 create nested directories at once
ZIP_API bool ZipPlatform::RemoveFile (LPCTSTR lpszFileName, bool bThrow=true)
ZIP_API bool ZipPlatform::RenameFile (LPCTSTR lpszOldName, LPCTSTR lpszNewName, bool bThrow=true)
ZIP_API bool ZipPlatform::TruncateFile (int iDes, DWORD iSize)
ZIP_API int ZipPlatform::OpenFile (LPCTSTR lpszFileName, UINT iMode, int iShareMode)
ZIP_API bool ZipPlatform::FlushFile (int iDes)
 flush the file to the disk.
ZIP_API int ZipPlatform::GetFileSystemHandle (int iDes)
 return the underlying system handle

Functions

ZIP_API bool ZipPlatform::GetSystemCaseSensitivity ()
 return the default system case-sensitivity
ZIP_API int ZipPlatform::GetSystemID ()
ZIP_API DWORD ZipPlatform::GetDefaultAttributes ()
ZIP_API DWORD ZipPlatform::GetDefaultDirAttributes ()
ZIP_API DWORD ZipPlatform::GetDeviceFreeSpace (LPCTSTR lpszPath)
 Get the free space on the device pointed by lpszPath.
ZIP_API CZipString ZipPlatform::GetTmpFileName (LPCTSTR lpszPath=NULL, DWORD iSizeNeeded=DWORD(-1))
 Return the temporary file name ensuring there is enough size in the destination directory,.
ZIP_API bool ZipPlatform::DirectoryExists (LPCTSTR lpszDir)
ZIP_API bool ZipPlatform::IsDriveRemovable (LPCTSTR lpszFilePath)
ZIP_API bool ZipPlatform::IsDirectory (DWORD uAttr)
ZIP_API void ZipPlatform::AnsiOem (CZipAutoBuffer &buffer, bool bAnsiToOem)
 Perform the translation between ANSI and OEM character sets.
ZIP_API int ZipPlatform::FileExists (LPCTSTR lpszName)
 Check if the given file or directory exists.
ZIP_API int ZipPlatform::WideToSingle (LPCTSTR lpWide, CZipAutoBuffer &szSingle, bool bUseAnsi)
 Convert wide character string to single character string.
ZIP_API int ZipPlatform::SingleToWide (const CZipAutoBuffer &szSingle, CZipString &szWide, bool bUseAnsi)
 Convert single character string to wide character string.


Detailed Description

ZipPlatform namespace declaration.

Definition in file ZipPlatform.h.


ZipArchive Copyright © 2000 - 2006 Tadeusz Dracz . Generated at Fri Apr 7 13:55:23 2006.