OpendTect-6_4  6.4
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
ZipUtils Class Reference

Zip Utilities. More...

Public Member Functions

 ZipUtils (const char *filelistnm=0)
 
 ~ZipUtils ()
 
bool Zip (const char *src, const char *dest)
 
bool UnZip (const char *scr, const char *dest)
 
uiString errorMsg () const
 
void makeFileList (const char *zipfile)
 
const BufferStringSetgetFileList () const
 

Static Public Member Functions

static bool unZipArchive (const char *src, const char *dest, uiString &errmsg, TaskRunner *tr=0)
 
static bool unZipArchives (const BufferStringSet &archvs, const char *dest, uiString &errmsg, TaskRunner *tr=0)
 
static bool unZipFile (const char *ziparchive, const char *fnm, const char *path, BufferString &errmsg)
 
static bool makeZip (const char *zipfilenm, const BufferStringSet &, uiString &errmsg, TaskRunner *tr=0, ZipHandler::CompLevel c=ZipHandler::Normal)
 
static bool makeZip (const char *zipfilenm, const char *tozip, uiString &errmsg, TaskRunner *tr=0, ZipHandler::CompLevel c=ZipHandler::Normal)
 
static bool appendToArchive (const char *zipfile, const char *toappend, uiString &errmsg, TaskRunner *tr=0, ZipHandler::CompLevel c=ZipHandler::Normal)
 

Protected Member Functions

bool doZip (const char *src, const char *dest)
 
bool doUnZip (const char *src, const char *dest)
 

Protected Attributes

uiString errmsg_
 
BufferStringSet filelist_
 
BufferString filelistname_
 
bool needfilelist_
 

Private Member Functions

 mODTextTranslationClass (zipUtils)
 

Detailed Description

Zip Utilities.

Constructor & Destructor Documentation

ZipUtils::ZipUtils ( const char *  filelistnm = 0)
ZipUtils::~ZipUtils ( )

Member Function Documentation

static bool ZipUtils::appendToArchive ( const char *  zipfile,
const char *  toappend,
uiString errmsg,
TaskRunner tr = 0,
ZipHandler::CompLevel  c = ZipHandler::Normal 
)
static
bool ZipUtils::doUnZip ( const char *  src,
const char *  dest 
)
protected
bool ZipUtils::doZip ( const char *  src,
const char *  dest 
)
protected
uiString ZipUtils::errorMsg ( ) const
inline
const BufferStringSet& ZipUtils::getFileList ( ) const
inline
void ZipUtils::makeFileList ( const char *  zipfile)
static bool ZipUtils::makeZip ( const char *  zipfilenm,
const BufferStringSet ,
uiString errmsg,
TaskRunner tr = 0,
ZipHandler::CompLevel  c = ZipHandler::Normal 
)
static
static bool ZipUtils::makeZip ( const char *  zipfilenm,
const char *  tozip,
uiString errmsg,
TaskRunner tr = 0,
ZipHandler::CompLevel  c = ZipHandler::Normal 
)
static
ZipUtils::mODTextTranslationClass ( zipUtils  )
private
bool ZipUtils::UnZip ( const char *  scr,
const char *  dest 
)
static bool ZipUtils::unZipArchive ( const char *  src,
const char *  dest,
uiString errmsg,
TaskRunner tr = 0 
)
static
static bool ZipUtils::unZipArchives ( const BufferStringSet archvs,
const char *  dest,
uiString errmsg,
TaskRunner tr = 0 
)
static
static bool ZipUtils::unZipFile ( const char *  ziparchive,
const char *  fnm,
const char *  path,
BufferString errmsg 
)
static
bool ZipUtils::Zip ( const char *  src,
const char *  dest 
)

Member Data Documentation

uiString ZipUtils::errmsg_
protected
BufferStringSet ZipUtils::filelist_
protected
BufferString ZipUtils::filelistname_
protected
bool ZipUtils::needfilelist_
protected

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019