NCBI C++ ToolKit
Classes | Macros | Functions
archive_zip.cpp File Reference
#include <ncbi_pch.hpp>
#include <util/error_codes.hpp>
#include <util/compress/zlib.hpp>
#include "archive_zip.hpp"
#include "miniz/miniz.c"
+ Include dependency graph for archive_zip.cpp:

Go to the source code of this file.

Go to the SVN repository for this file.

Classes

struct  SZipHandle
 ZIP archive handle type definition. More...
 
struct  SWriteCallbackData
 

Macros

#define NCBI_USE_ERRCODE_X   Util_Compress
 
#define MINIZ_NO_ZLIB_APIS
 
#define ZIP_HANDLE   &(m_Handle->zip)
 
#define ZIP_CHECK   _ASSERT(m_Handle != NULL)
 
#define ZIP_NEW
 
#define ZIP_DELETE
 
#define ZIP_THROW(errcode, message)    NCBI_THROW(CArchiveException, errcode, message)
 

Functions

static size_t s_ZipExtractCallback (void *params, mz_uint64, const void *buf, size_t n)
 
static size_t s_ZipTestCallback (void *, mz_uint64, const void *, size_t n)
 

Macro Definition Documentation

◆ MINIZ_NO_ZLIB_APIS

#define MINIZ_NO_ZLIB_APIS

Definition at line 47 of file archive_zip.cpp.

◆ NCBI_USE_ERRCODE_X

#define NCBI_USE_ERRCODE_X   Util_Compress

Definition at line 38 of file archive_zip.cpp.

◆ ZIP_CHECK

#define ZIP_CHECK   _ASSERT(m_Handle != NULL)

Definition at line 92 of file archive_zip.cpp.

◆ ZIP_DELETE

#define ZIP_DELETE
Value:
{ \
_ASSERT(m_Handle != NULL); \
delete m_Handle; \
m_Handle = NULL; \
}
#define NULL
Definition: ncbistd.hpp:225

Definition at line 100 of file archive_zip.cpp.

◆ ZIP_HANDLE

#define ZIP_HANDLE   &(m_Handle->zip)

Definition at line 91 of file archive_zip.cpp.

◆ ZIP_NEW

#define ZIP_NEW
Value:
{ \
_ASSERT(m_Handle == NULL); \
m_Handle = new SZipHandle(); \
_ASSERT(m_Handle != NULL); \
}
ZIP archive handle type definition.
Definition: archive_zip.cpp:79

Definition at line 93 of file archive_zip.cpp.

◆ ZIP_THROW

#define ZIP_THROW (   errcode,
  message 
)     NCBI_THROW(CArchiveException, errcode, message)

Definition at line 108 of file archive_zip.cpp.

Function Documentation

◆ s_ZipExtractCallback()

static size_t s_ZipExtractCallback ( void *  params,
mz_uint64  ,
const void *  buf,
size_t  n 
)
static

Definition at line 433 of file archive_zip.cpp.

References _ASSERT, buf, data, and n.

Referenced by CArchiveZip::ExtractEntryToCallback().

◆ s_ZipTestCallback()

static size_t s_ZipTestCallback ( void *  ,
mz_uint64  ,
const void *  ,
size_t  n 
)
static

Definition at line 470 of file archive_zip.cpp.

References n.

Referenced by CArchiveZip::TestEntry().

Modified on Thu May 23 12:32:31 2024 by modify_doxy.py rev. 669887