OpendTect  7.0
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
ZipUtils Class Reference

Zip Utilities. More...

Public Member Functions

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

Static Public Member Functions

static bool appendToArchive (const char *zipfile, const char *toappend, uiString &errmsg, TaskRunner *tr=0, ZipHandler::CompLevel c=ZipHandler::Normal)
 
static bool makeFileList (const char *zipfilenm, BufferStringSet &list, uiString &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 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)
 

Protected Attributes

uiString errmsg_
 
BufferStringSet filelist_
 
BufferString filelistname_
 
bool needfilelist_
 

Detailed Description

Zip Utilities.

<>

Constructor & Destructor Documentation

◆ ZipUtils()

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

◆ ~ZipUtils()

ZipUtils::~ZipUtils ( )

Member Function Documentation

◆ appendToArchive()

static bool ZipUtils::appendToArchive ( const char *  zipfile,
const char *  toappend,
uiString errmsg,
TaskRunner tr = 0,
ZipHandler::CompLevel  c = ZipHandler::Normal 
)
static

◆ errorMsg()

uiString ZipUtils::errorMsg ( ) const
inline

◆ getFileList()

const BufferStringSet& ZipUtils::getFileList ( ) const
inline

◆ makeFileList() [1/2]

void ZipUtils::makeFileList ( const char *  zipfile)

◆ makeFileList() [2/2]

static bool ZipUtils::makeFileList ( const char *  zipfilenm,
BufferStringSet list,
uiString errmsg 
)
static

◆ makeZip() [1/2]

static bool ZipUtils::makeZip ( const char *  zipfilenm,
const BufferStringSet ,
uiString errmsg,
TaskRunner tr = 0,
ZipHandler::CompLevel  c = ZipHandler::Normal 
)
static

◆ makeZip() [2/2]

static bool ZipUtils::makeZip ( const char *  zipfilenm,
const char *  tozip,
uiString errmsg,
TaskRunner tr = 0,
ZipHandler::CompLevel  c = ZipHandler::Normal 
)
static

◆ UnZip()

bool ZipUtils::UnZip ( const char *  scr,
const char *  dest 
)

◆ unZipArchive()

static bool ZipUtils::unZipArchive ( const char *  src,
const char *  dest,
uiString errmsg,
TaskRunner tr = 0 
)
static

◆ unZipArchives()

static bool ZipUtils::unZipArchives ( const BufferStringSet archvs,
const char *  dest,
uiString errmsg,
TaskRunner tr = 0 
)
static

◆ unZipFile()

static bool ZipUtils::unZipFile ( const char *  ziparchive,
const char *  fnm,
const char *  path,
BufferString errmsg 
)
static

◆ Zip()

bool ZipUtils::Zip ( const char *  src,
const char *  dest 
)

Member Data Documentation

◆ errmsg_

uiString ZipUtils::errmsg_
protected

◆ filelist_

BufferStringSet ZipUtils::filelist_
protected

◆ filelistname_

BufferString ZipUtils::filelistname_
protected

◆ needfilelist_

bool ZipUtils::needfilelist_
protected

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