NCBI C++ ToolKit
|
#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>
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) |
#define ARCHIVE m_Archive.get() |
Definition at line 121 of file archive.cpp.
Definition at line 123 of file archive.cpp.
#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.
#define ARCHIVE_THROW1 | ( | errcode | ) | NCBI_THROW(CArchiveException, errcode, s_FormatMessage(CArchiveException::errcode, kEmptyStr, this->m_Current)) |
Definition at line 108 of file archive.cpp.
#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.
Definition at line 126 of file archive.cpp.
#define NCBI_USE_ERRCODE_X Util_Compress |
Definition at line 50 of file archive.cpp.
|
static |
Definition at line 61 of file archive.cpp.
References CArchiveException::eAppend, CArchiveException::eBackup, CArchiveException::eBadName, CArchiveException::eClose, CArchiveException::eCreate, CArchiveException::eExtract, CArchiveException::eList, CArchiveException::eMemory, CArchiveException::eOpen, CArchiveException::eRestoreAttrs, CArchiveException::eUnsupportedEntryType, and info.
Definition at line 95 of file archive.cpp.
References kEmptyStr, strerror(), and string.
Referenced by CArchiveMemory::Load(), CArchive::x_Append(), CArchive::x_ExtractEntry(), and CArchive::x_RestoreAttrs().
|
static |
Definition at line 147 of file archive.cpp.
References CDirEntry::AddTrailingPathSeparator(), NStr::eCase, NStr::eNocase, CDirEntry::IsAbsolutePath(), isalpha(), NStr::ReplaceInPlace(), and NStr::StartsWith().
Referenced by CArchive::AppendFileFromMemory(), and CArchive::x_Append().
Definition at line 137 of file archive.cpp.
References CDirEntry::ConcatPath(), CDirEntry::IsAbsolutePath(), and CDirEntry::NormalizePath().
Referenced by CArchive::x_Append().