Lhaz
読み取り中…
検索中…
一致する文字列を見つけられません
クラス | 公開型 | 公開メンバ関数 | 静的公開メンバ関数 | 限定公開メンバ関数 | 限定公開変数類 | 静的限定公開変数類 | 静的非公開メンバ関数 | 静的非公開変数類 | 全メンバ一覧
ARCHIVE クラスabstract

#include <lhazarc.h>

ARCHIVE の継承関係図
ARC7ZIP ARCBZ2 ARCCAB ARCGZIP ARCLZ4 ARCLZH ARCRAR ARCTBZ ARCTGZ ARCZIP ARCZSTD

クラス

struct  EXT_TABLE
 

公開型

enum  TYPE {
  NON , LZH , ZIP , ENCZIP ,
  CAB , TGZ , TAR , GZIP ,
  TBZ , BZ2 , SZIP , SFXLZH ,
  SFXCAB , SFXZIP , RAR , ISCAB ,
  XZ , TXZ , LZ4 , LZMA ,
  ZSTD , GOOGLE_DOC , ONEDRIVE , DROPBOX ,
  MAX
}
 
enum  COMPLETE { ARC_NO_ERROR , ARC_CANCELED , ARC_STOPPED , ARC_ERROR }
 

公開メンバ関数

 ARCHIVE (HWND hwnd, const WSTR &name, TYPE type, gui::LHAZTREEVIEW *treeview)
 
virtual ‾ARCHIVE ()
 
virtual bool Extract (bool verify, const WSTR &temp, const WSTR &password)=0
 
virtual bool Extract (const WSTR &temp)=0
 
virtual bool Compress (int method, int header, const WSTR &pass, const PATH &temp, const std::vector< LHAZPROCFILE > &v)=0
 
virtual bool Delete (const std::vector< LHAZFILE * > &v)=0
 
bool CanAppend (UINT &mes_id)
 
void ClearExtFile ()
 
bool DoMakeDir () const
 
void Filt (const WSTR &filter)
 
void Filt (const WSTR &filter, const LHAZFILETREE *node)
 
const WSTR & GetAllName (int idx) const
 
std::size_t GetCount () const
 
const WSTR & GetCsizeText (int idx) const
 
const WSTR & GetCsizeTextKB (int idx) const
 
const WSTR & GetDir (int idx) const
 
::size_t GetDspCount () const
 
bool GetEncrypt () const
 
std::vector< LHAZFILE * > & GetExtFile ()
 
LONGLONG GetExtMemberTotal () const
 
LHAZFILEGetFile (int idx) const
 
const WSTR & GetFname (int idx) const
 
int GetImage (int idx) const
 
const std::vector< LHAZFILE * > & GetList () const
 
const WSTR & GetMethodText (int idx) const
 
const WSTR & GetName () const
 
const WSTR & GetName (int idx) const
 
const WSTR & GetOneDir () const
 
const WSTR & GetRatioText (int idx) const
 
LONGLONG GetSize (int idx) const
 
const WSTR & GetSizeText (int idx) const
 
const WSTR & GetSizeTextKB (int idx) const
 
const WSTR & GetTimeText (int idx) const
 
LONGLONG GetTotal () const
 
LHAZFILETREEGetTree () const
 
LHAZFILETREEGetTree (int idx) const
 
TYPE GetType () const
 
const WSTR & GetType (int idx) const
 
bool IsDir (int idx) const
 
bool IsVirtual (int idx) const
 
void ListAllMember ()
 
void ListExtMember (const std::vector< int > &indxs, bool add=false)
 
void ListExtMemberDescendant (const WSTR &dir, const WSTR &filter)
 
void SetName (const WSTR &name)
 
void Sort (int kind, int rev)
 

静的公開メンバ関数

static TYPE GetArchiveType (const WSTR &name, bool &pass_correct)
 
static TYPE GetArchiveTypeByName (const WSTR &name)
 
static bool IsSingleFileCompressed (TYPE type)
 IsSingleFileCompressed
 
static bool IsUnicodeSupport (TYPE type)
 
static ARCHIVECreate (HWND hwnd, const WSTR &name, TYPE type)
 
static ARCHIVECreate (HWND hwnd, const WSTR &name, TYPE type, TCHAR *filter, gui::LHAZTREEVIEW *treeview)
 

限定公開メンバ関数

bool IsSameDir (WSTR &dirbuf, const WSTR &curdir)
 
void AppendList (const WSTR &name, std::vector< WSTR > &list)
 
void AppendListWithDir (const WSTR &name, std::vector< WSTR > &list, bool &unicode_file_exist)
 
int ShareError (const WSTR &name)
 

限定公開変数類

HWND Hwnd
 
WSTR Name
 
TYPE Type
 
LONGLONG Total
 
bool MakeDir
 
WSTR OneDir
 
bool Encrypt
 
std::vector< LHAZFILE * > List
 
std::vector< LHAZFILE * > SortTable
 
std::vector< LHAZFILE * > ExtFile
 
LHAZFILETREETree
 

静的限定公開変数類

static const size_t SFXSIZE = 0xA0000
 

静的非公開メンバ関数

static bool IsOfficeOpenXML (const WSTR &name)
 

静的非公開変数類

static const EXT_TABLE m_ext_table []
 
static const char MZHEADER [] = { 'M', 'Z' }
 

列挙型メンバ詳解

◆ COMPLETE

列挙値
ARC_NO_ERROR 
ARC_CANCELED 
ARC_STOPPED 
ARC_ERROR 

◆ TYPE

列挙値
NON 
LZH 
ZIP 
ENCZIP 
CAB 
TGZ 
TAR 
GZIP 
TBZ 
BZ2 
SZIP 
SFXLZH 
SFXCAB 
SFXZIP 
RAR 
ISCAB 
XZ 
TXZ 
LZ4 
LZMA 
ZSTD 
GOOGLE_DOC 
ONEDRIVE 
DROPBOX 
MAX 

構築子と解体子

◆ ARCHIVE()

ARCHIVE::ARCHIVE ( HWND  hwnd,
const WSTR &  name,
TYPE  type,
gui::LHAZTREEVIEW treeview 
)

関数詳解

◆ ‾ARCHIVE()

ARCHIVE::‾ARCHIVE ( )
virtual

◆ AppendList()

void ARCHIVE::AppendList ( const WSTR &  name,
std::vector< WSTR > &  list 
)
protected

◆ AppendListWithDir()

void ARCHIVE::AppendListWithDir ( const WSTR &  name,
std::vector< WSTR > &  list,
bool unicode_file_exist 
)
protected

◆ CanAppend()

bool ARCHIVE::CanAppend ( UINT &  mes_id)

◆ ClearExtFile()

void ARCHIVE::ClearExtFile ( )
inline

◆ Compress()

virtual bool ARCHIVE::Compress ( int  method,
int  header,
const WSTR &  pass,
const PATH &  temp,
const std::vector< LHAZPROCFILE > &  v 
)
pure virtual

ARCBZ2, ARCGZIP, ARCLZ4, ARC7ZIP, ARCZIP, ARCZSTDで実装されています。

◆ Create() [1/2]

ARCHIVE * ARCHIVE::Create ( HWND  hwnd,
const WSTR &  name,
TYPE  type 
)
static

◆ Create() [2/2]

ARCHIVE * ARCHIVE::Create ( HWND  hwnd,
const WSTR &  name,
TYPE  type,
TCHAR *  filter,
gui::LHAZTREEVIEW treeview 
)
static

◆ Delete()

virtual bool ARCHIVE::Delete ( const std::vector< LHAZFILE * > &  v)
pure virtual

ARCBZ2, ARCGZIP, ARCLZ4, ARC7ZIP, ARCZIP, ARCZSTDで実装されています。

◆ DoMakeDir()

bool ARCHIVE::DoMakeDir ( ) const
inline

◆ Extract() [1/2]

virtual bool ARCHIVE::Extract ( bool  verify,
const WSTR &  temp,
const WSTR &  password 
)
pure virtual

ARCBZ2, ARCCAB, ARCGZIP, ARCLZ4, ARCLZH, ARC7ZIP, ARCRAR, ARCZIP, ARCTBZ, ARCTGZ, ARCZSTDで実装されています。

◆ Extract() [2/2]

virtual bool ARCHIVE::Extract ( const WSTR &  temp)
pure virtual

ARCBZ2, ARCCAB, ARCGZIP, ARCLZ4, ARCLZH, ARC7ZIP, ARCRAR, ARCZIP, ARCTBZ, ARCTGZ, ARCZSTDで実装されています。

◆ Filt() [1/2]

void ARCHIVE::Filt ( const WSTR &  filter)

◆ Filt() [2/2]

void ARCHIVE::Filt ( const WSTR &  filter,
const LHAZFILETREE node 
)

◆ GetAllName()

const WSTR & ARCHIVE::GetAllName ( int  idx) const

◆ GetArchiveType()

ARCHIVE::TYPE ARCHIVE::GetArchiveType ( const WSTR &  name,
bool pass_correct 
)
static

◆ GetArchiveTypeByName()

ARCHIVE::TYPE ARCHIVE::GetArchiveTypeByName ( const WSTR &  name)
static

◆ GetCount()

std::size_t ARCHIVE::GetCount ( ) const
inline

◆ GetCsizeText()

const WSTR & ARCHIVE::GetCsizeText ( int  idx) const

◆ GetCsizeTextKB()

const WSTR & ARCHIVE::GetCsizeTextKB ( int  idx) const

◆ GetDir()

const WSTR & ARCHIVE::GetDir ( int  idx) const

◆ GetDspCount()

::size_t ARCHIVE::GetDspCount ( ) const
inline

◆ GetEncrypt()

bool ARCHIVE::GetEncrypt ( ) const
inline

◆ GetExtFile()

std::vector< LHAZFILE * > & ARCHIVE::GetExtFile ( )
inline

◆ GetExtMemberTotal()

LONGLONG ARCHIVE::GetExtMemberTotal ( ) const

◆ GetFile()

LHAZFILE * ARCHIVE::GetFile ( int  idx) const

◆ GetFname()

const WSTR & ARCHIVE::GetFname ( int  idx) const

◆ GetImage()

int ARCHIVE::GetImage ( int  idx) const

◆ GetList()

const std::vector< LHAZFILE * > & ARCHIVE::GetList ( ) const
inline

◆ GetMethodText()

const WSTR & ARCHIVE::GetMethodText ( int  idx) const

◆ GetName() [1/2]

const WSTR & ARCHIVE::GetName ( ) const
inline

◆ GetName() [2/2]

const WSTR & ARCHIVE::GetName ( int  idx) const

◆ GetOneDir()

const WSTR & ARCHIVE::GetOneDir ( ) const
inline

◆ GetRatioText()

const WSTR & ARCHIVE::GetRatioText ( int  idx) const

◆ GetSize()

LONGLONG ARCHIVE::GetSize ( int  idx) const

◆ GetSizeText()

const WSTR & ARCHIVE::GetSizeText ( int  idx) const

◆ GetSizeTextKB()

const WSTR & ARCHIVE::GetSizeTextKB ( int  idx) const

◆ GetTimeText()

const WSTR & ARCHIVE::GetTimeText ( int  idx) const

◆ GetTotal()

LONGLONG ARCHIVE::GetTotal ( ) const
inline

◆ GetTree() [1/2]

LHAZFILETREE * ARCHIVE::GetTree ( ) const
inline

◆ GetTree() [2/2]

LHAZFILETREE * ARCHIVE::GetTree ( int  idx) const

◆ GetType() [1/2]

TYPE ARCHIVE::GetType ( ) const
inline

◆ GetType() [2/2]

const WSTR & ARCHIVE::GetType ( int  idx) const

◆ IsDir()

bool ARCHIVE::IsDir ( int  idx) const

◆ IsOfficeOpenXML()

bool ARCHIVE::IsOfficeOpenXML ( const WSTR &  name)
staticprivate

◆ IsSameDir()

bool ARCHIVE::IsSameDir ( WSTR &  dirbuf,
const WSTR &  curdir 
)
protected

◆ IsSingleFileCompressed()

bool ARCHIVE::IsSingleFileCompressed ( TYPE  type)
static

IsSingleFileCompressed

◆ IsUnicodeSupport()

bool ARCHIVE::IsUnicodeSupport ( TYPE  type)
static

◆ IsVirtual()

bool ARCHIVE::IsVirtual ( int  idx) const

◆ ListAllMember()

void ARCHIVE::ListAllMember ( )

◆ ListExtMember()

void ARCHIVE::ListExtMember ( const std::vector< int > &  indxs,
bool  add = false 
)

◆ ListExtMemberDescendant()

void ARCHIVE::ListExtMemberDescendant ( const WSTR &  dir,
const WSTR &  filter 
)

◆ SetName()

void ARCHIVE::SetName ( const WSTR &  name)

◆ ShareError()

int ARCHIVE::ShareError ( const WSTR &  name)
protected

◆ Sort()

void ARCHIVE::Sort ( int  kind,
int  rev 
)

メンバ詳解

◆ Encrypt

bool ARCHIVE::Encrypt
protected

◆ ExtFile

std::vector<LHAZFILE*> ARCHIVE::ExtFile
protected

◆ Hwnd

HWND ARCHIVE::Hwnd
protected

◆ List

std::vector<LHAZFILE*> ARCHIVE::List
protected

◆ m_ext_table

const ARCHIVE::EXT_TABLE ARCHIVE::m_ext_table
staticprivate
初期値:
= {
{ LZH, _T(".lzh") },
{ ZIP, _T(".zip") },
{ CAB, _T(".cab") },
{ TGZ, _T(".tgz") },
{ TAR, _T(".tar") },
{ GZIP, _T(".gz") },
{ TBZ, _T(".tbz") },
{ BZ2, _T(".bz") },
{ SZIP, _T(".7z") },
{ SFXLZH, _T(".exe") },
{ RAR, _T(".rar") },
{ XZ, _T(".xz") },
{ LZMA, _T(".lzma") },
{ TXZ, _T(".txz") },
{ LZ4, _T(".lz4") },
{ ZSTD, _T(".zst") },
{ MAX, NULL },
}
@ XZ
Definition lhazarc.h:45
@ ZIP
Definition lhazarc.h:31
@ LZH
Definition lhazarc.h:30
@ CAB
Definition lhazarc.h:33
@ SFXLZH
Definition lhazarc.h:40
@ GZIP
Definition lhazarc.h:36
@ SZIP
Definition lhazarc.h:39
@ BZ2
Definition lhazarc.h:38
@ TXZ
Definition lhazarc.h:46
@ MAX
Definition lhazarc.h:53
@ TBZ
Definition lhazarc.h:37
@ ZSTD
Definition lhazarc.h:49
@ TAR
Definition lhazarc.h:35
@ RAR
Definition lhazarc.h:43
@ LZMA
Definition lhazarc.h:48
@ TGZ
Definition lhazarc.h:34
@ LZ4
Definition lhazarc.h:47

◆ MakeDir

bool ARCHIVE::MakeDir
protected

◆ MZHEADER

const char ARCHIVE::MZHEADER = { 'M', 'Z' }
staticprivate

◆ Name

WSTR ARCHIVE::Name
protected

◆ OneDir

WSTR ARCHIVE::OneDir
protected

◆ SFXSIZE

const size_t ARCHIVE::SFXSIZE = 0xA0000
staticprotected

◆ SortTable

std::vector<LHAZFILE*> ARCHIVE::SortTable
protected

◆ Total

LONGLONG ARCHIVE::Total
protected

◆ Tree

LHAZFILETREE* ARCHIVE::Tree
protected

◆ Type

TYPE ARCHIVE::Type
protected

このクラス詳解は次のファイルから抽出されました: