NCBI C++ ToolKit
Classes | Macros | Functions
archive.cpp File Reference
#include <ncbi_pch.hpp>
#include <corelib/ncbistr.hpp>
#include <util/compress/archive.hpp>
#include <util/error_codes.hpp>
#include "archive_zip.hpp"
#include <io.h>
+ Include dependency graph for archive.cpp:

Go to the source code of this file.

Go to the SVN repository for this file.

Classes

struct  CTmpEntryDeleter
 

Macros

#define NCBI_USE_ERRCODE_X   Util_Compress
 
#define ARCHIVE_THROW1(errcode)    NCBI_THROW(CArchiveException, errcode, s_FormatMessage(CArchiveException::errcode, kEmptyStr, this->m_Current))
 
#define ARCHIVE_THROW(errcode, message)    NCBI_THROW(CArchiveException, errcode, s_FormatMessage(CArchiveException::errcode, message, this->m_Current))
 
#define ARCHIVE_THROW_INFO(errcode, message, info)    NCBI_THROW(CArchiveException, errcode, s_FormatMessage(CArchiveException::errcode, message, info))
 
#define ARCHIVE   m_Archive.get()
 
#define ARCHIVE_CHECK   _ASSERT(m_Archive.get() != NULL)
 
#define F_ISSET(mask)   ((m_Flags & (mask)) == (mask))
 

Functions

static string s_FormatMessage (CArchiveException::TErrCode errcode, const string &message, const CArchiveEntryInfo &info)
 
static string s_OSReason (int x_errno)
 
static string s_ToFilesystemPath (const string &base_dir, const string &name)
 
static string s_ToArchiveName (const string &base_dir, const string &path, bool is_absolute_allowed)
 

Macro Definition Documentation

◆ ARCHIVE

#define ARCHIVE   m_Archive.get()

Definition at line 121 of file archive.cpp.

◆ ARCHIVE_CHECK

#define ARCHIVE_CHECK   _ASSERT(m_Archive.get() != NULL)

Definition at line 123 of file archive.cpp.

◆ ARCHIVE_THROW

#define ARCHIVE_THROW (   errcode,
  message 
)     NCBI_THROW(CArchiveException, errcode, s_FormatMessage(CArchiveException::errcode, message, this->m_Current))

Definition at line 110 of file archive.cpp.

◆ ARCHIVE_THROW1

#define ARCHIVE_THROW1 (   errcode)     NCBI_THROW(CArchiveException, errcode, s_FormatMessage(CArchiveException::errcode, kEmptyStr, this->m_Current))

Definition at line 108 of file archive.cpp.

◆ ARCHIVE_THROW_INFO

#define ARCHIVE_THROW_INFO (   errcode,
  message,
  info 
)     NCBI_THROW(CArchiveException, errcode, s_FormatMessage(CArchiveException::errcode, message, info))

Definition at line 112 of file archive.cpp.

◆ F_ISSET

#define F_ISSET (   mask)    ((m_Flags & (mask)) == (mask))

Definition at line 126 of file archive.cpp.

◆ NCBI_USE_ERRCODE_X

#define NCBI_USE_ERRCODE_X   Util_Compress

Definition at line 50 of file archive.cpp.

Function Documentation

◆ s_FormatMessage()

static string s_FormatMessage ( CArchiveException::TErrCode  errcode,
const string message,
const CArchiveEntryInfo info 
)
static

◆ s_OSReason()

static string s_OSReason ( int  x_errno)
static

◆ s_ToArchiveName()

static string s_ToArchiveName ( const string base_dir,
const string path,
bool  is_absolute_allowed 
)
static

◆ s_ToFilesystemPath()

static string s_ToFilesystemPath ( const string base_dir,
const string name 
)
static
Modified on Tue Apr 23 07:37:30 2024 by modify_doxy.py rev. 669887