Lhaz
公開型 | 公開メンバ関数 | 非公開メンバ関数 | 非公開変数類 | 静的非公開変数類 | 全メンバ一覧
CLZH クラス

#include <lzh.h>

公開型

enum  METHOD {
  LZHUFF0_METHOD_NUM1, LZHUFF1_METHOD_NUM1, LZHUFF2_METHOD_NUM1, LZHUFF3_METHOD_NUM1,
  LZHUFF4_METHOD_NUM1, LZHUFF5_METHOD_NUM1, LZHUFF6_METHOD_NUM1, LZHUFF7_METHOD_NUM1,
  LARC_METHOD_NUM1, LARC5_METHOD_NUM1, LARC4_METHOD_NUM1, LZHDIRS_METHOD_NUM1
}
 

公開メンバ関数

 CLZH (int arctype=0)
 
 CLZH (const MYSTR &name, struct _stat *v_stat)
 
 ‾CLZH (void)
 
bool Match (char *p, char *s, int f)
 
bool ReadHeader (MYFILE &)
 
bool Extract (MYFILE &fp, bool &force, bool &skip, bool test=false)
 
bool Add (MYFILE &fp, MYFILE &nafp, int method, uchar level)
 
void WriteHeader (MYFILE &nafp)
 
const MYSTR & GetName (void)
 
const MYSTR & GetFname (void)
 
void SetName (const MYSTR &name)
 
void SetFname (const MYSTR &name, bool dir=false)
 
const MYSTR & GetDir (void)
 
void SetDir (const MYSTR &dir)
 
uchar GetHeaderSize (void)
 
LONGLONG GetTotalSize (void)
 
LONGLONG GetSize (void)
 
void SetOriginalSize (LONGLONG size)
 
LONGLONG GetPackedSize (void)
 
void SetPackedSize (ulong size)
 
float GetRatio (void)
 
void SetRatio (void)
 
int GetMethod (void)
 
void SetMethod (int method)
 
const MYSTR & GetMethodText (void)
 
void SetMethodText (const MYSTR &method)
 
time_t GetTime (void)
 
void SetUnix_last_modified_stamp (time_t t)
 
ushort GetUnix_mode (void)
 
const MYSTR & GetType (void)
 
void SetType (const MYSTR &type)
 
int GetImage (void)
 
void SetImage (int image)
 
fpos_t GetFpos (void)
 
void SetFpos (fpos_t fpos)
 
bool GetEncrypt (void)
 
void SetEncrypt (bool f)
 
uchar GetHeaderLevel (void)
 
int GetTreeFolder (void) const
 
void SetTreeFolder (int f)
 
ushort GetAttribute (void) const
 

非公開メンバ関数

void clzh (void)
 
ushort get_word (void)
 
void put_word (unsigned int)
 
ulong get_longword (void)
 
void put_longword (long)
 
void generic_to_unix_filename (char *, int)
 
void unix_to_generic_filename (MYSTR &)
 
void macos_to_unix_filename (char *, int)
 
long unix_to_generic_stamp (time_t)
 
long gettz (void) const
 
void adjust_info (const MYSTR &name)
 
int inquire_extract (const MYSTR &name, bool &force, bool &skip)
 
bool open_with_make_path (const MYSTR &name, MYFILE **fp)
 
bool make_parent_path (const MYSTR &name)
 
ushort decode_lzhuf (MYFILE &infp, MYFILE &outfp, LONGLONG original_size, LONGLONG packed_size, const MYSTR &name, int method)
 
ushort encode_lzhuf (MYFILE &infp, MYFILE &outfp, LONGLONG *original_size_var, LONGLONG *packed_size_var)
 
ushort encode_stored_crc (MYFILE &ifp, MYFILE &ofp, LONGLONG size, LONGLONG *original_size_var, LONGLONG *write_size_var)
 
void fatal_error (const MYSTR &msg)
 
bool ReadLevel0Header (MYFILE &)
 
bool ReadLevel1Header (MYFILE &)
 
bool ReadLevel2Header (MYFILE &)
 
bool ReadLevel3Header (MYFILE &)
 
void WriteLevel0Header (MYFILE &nafp)
 
void WriteLevel1Header (MYFILE &nafp)
 
void WriteLevel2Header (MYFILE &nafp)
 
void WriteLevel3Header (MYFILE &nafp)
 

非公開変数類

uchar HeaderSize
 
int MethodNum
 
char Method [METHOD_TYPE_STRAGE]
 
MYSTR MethodText
 
LONGLONG PackedSize
 
LONGLONG OriginalSize
 
long Last_modified_stamp
 
time_t Unix_last_modified_stamp
 
ushort Attribute
 
uchar HeaderLevel
 
MYSTR Dir
 
MYSTR Fname
 
MYSTR Name
 
ushort Crc
 
bool HasCrc
 
uchar ExtendType
 
uchar Minor_version
 
ushort Unix_mode
 
ushort Unix_uid
 
ushort Unix_gid
 
MYSTR Type
 
int Image
 
fpos_t Fpos
 
float Ratio
 
int ArcType
 
bool Encrypt
 
unsigned char * get_ptr
 
int TreeFolder
 
FILETIME CreationTime
 
FILETIME LastAccessTime
 
FILETIME LastWriteTime
 
bool TimeStampExist
 

静的非公開変数類

static const int FILENAME_LENGTH = 1024
 
static const int LZHEADER_STRAGE = 4096
 
static const ushort UNIX_FILE_REGULAR = 0100000
 
static const ushort UNIX_RW_RW_RW = 0000666
 
static char * Methods []
 

列挙型メンバ詳解

列挙値
LZHUFF0_METHOD_NUM1 
LZHUFF1_METHOD_NUM1 
LZHUFF2_METHOD_NUM1 
LZHUFF3_METHOD_NUM1 
LZHUFF4_METHOD_NUM1 
LZHUFF5_METHOD_NUM1 
LZHUFF6_METHOD_NUM1 
LZHUFF7_METHOD_NUM1 
LARC_METHOD_NUM1 
LARC5_METHOD_NUM1 
LARC4_METHOD_NUM1 
LZHDIRS_METHOD_NUM1 

構築子と解体子

CLZH::CLZH ( int  arctype = 0)
CLZH::CLZH ( const MYSTR &  name,
struct _stat *  v_stat 
)

関数詳解

bool CLZH::Add ( MYFILE &  fp,
MYFILE &  nafp,
int  method,
uchar  level 
)
void CLZH::adjust_info ( const MYSTR &  name)
private
void CLZH::clzh ( void  )
private
ushort CLZH::decode_lzhuf ( MYFILE &  infp,
MYFILE &  outfp,
LONGLONG  original_size,
LONGLONG  packed_size,
const MYSTR &  name,
int  method 
)
private
ushort CLZH::encode_lzhuf ( MYFILE &  infp,
MYFILE &  outfp,
LONGLONG *  original_size_var,
LONGLONG *  packed_size_var 
)
private
ushort CLZH::encode_stored_crc ( MYFILE &  ifp,
MYFILE &  ofp,
LONGLONG  size,
LONGLONG *  original_size_var,
LONGLONG *  write_size_var 
)
private
bool CLZH::Extract ( MYFILE &  fp,
bool force,
bool skip,
bool  test = false 
)
void CLZH::fatal_error ( const MYSTR &  msg)
private
void CLZH::generic_to_unix_filename ( char *  name,
int  len 
)
private
ulong CLZH::get_longword ( void  )
private
ushort CLZH::get_word ( void  )
private
ushort CLZH::GetAttribute ( void  ) const
inline
const MYSTR& CLZH::GetDir ( void  )
inline
bool CLZH::GetEncrypt ( void  )
inline
const MYSTR& CLZH::GetFname ( void  )
inline
fpos_t CLZH::GetFpos ( void  )
inline
uchar CLZH::GetHeaderLevel ( void  )
inline
uchar CLZH::GetHeaderSize ( void  )
inline
int CLZH::GetImage ( void  )
inline
int CLZH::GetMethod ( void  )
inline
const MYSTR& CLZH::GetMethodText ( void  )
inline
const MYSTR& CLZH::GetName ( void  )
inline
LONGLONG CLZH::GetPackedSize ( void  )
inline
float CLZH::GetRatio ( void  )
inline
LONGLONG CLZH::GetSize ( void  )
inline
time_t CLZH::GetTime ( void  )
inline
LONGLONG CLZH::GetTotalSize ( void  )
int CLZH::GetTreeFolder ( void  ) const
inline
const MYSTR& CLZH::GetType ( void  )
inline
long CLZH::gettz ( void  ) const
private
ushort CLZH::GetUnix_mode ( void  )
inline
int CLZH::inquire_extract ( const MYSTR &  name,
bool force,
bool skip 
)
private
void CLZH::macos_to_unix_filename ( char *  name,
int  len 
)
private
bool CLZH::make_parent_path ( const MYSTR &  name)
private
bool CLZH::Match ( char *  p,
char *  s,
int  f 
)
bool CLZH::open_with_make_path ( const MYSTR &  name,
MYFILE **  fp 
)
private
void CLZH::put_longword ( long  v)
private
void CLZH::put_word ( unsigned int  v)
private
bool CLZH::ReadHeader ( MYFILE &  fp)
bool CLZH::ReadLevel0Header ( MYFILE &  fp)
private
bool CLZH::ReadLevel1Header ( MYFILE &  fp)
private
bool CLZH::ReadLevel2Header ( MYFILE &  fp)
private
bool CLZH::ReadLevel3Header ( MYFILE &  )
private
void CLZH::SetDir ( const MYSTR &  dir)
void CLZH::SetEncrypt ( bool  f)
inline
void CLZH::SetFname ( const MYSTR &  name,
bool  dir = false 
)
void CLZH::SetFpos ( fpos_t  fpos)
inline
void CLZH::SetImage ( int  image)
inline
void CLZH::SetMethod ( int  method)
inline
void CLZH::SetMethodText ( const MYSTR &  method)
inline
void CLZH::SetName ( const MYSTR &  name)
void CLZH::SetOriginalSize ( LONGLONG  size)
void CLZH::SetPackedSize ( ulong  size)
void CLZH::SetRatio ( void  )
void CLZH::SetTreeFolder ( int  f)
inline
void CLZH::SetType ( const MYSTR &  type)
inline
void CLZH::SetUnix_last_modified_stamp ( time_t  t)
void CLZH::unix_to_generic_filename ( MYSTR &  name)
private
long CLZH::unix_to_generic_stamp ( time_t  t)
private
void CLZH::WriteHeader ( MYFILE &  nafp)
void CLZH::WriteLevel0Header ( MYFILE &  nafp)
private
void CLZH::WriteLevel1Header ( MYFILE &  nafp)
private
void CLZH::WriteLevel2Header ( MYFILE &  nafp)
private
void CLZH::WriteLevel3Header ( MYFILE &  nafp)
private
CLZH::‾CLZH ( void  )

メンバ詳解

int CLZH::ArcType
private
ushort CLZH::Attribute
private
ushort CLZH::Crc
private
FILETIME CLZH::CreationTime
private
MYSTR CLZH::Dir
private
bool CLZH::Encrypt
private
uchar CLZH::ExtendType
private
const int CLZH::FILENAME_LENGTH = 1024
staticprivate
MYSTR CLZH::Fname
private
fpos_t CLZH::Fpos
private
unsigned char* CLZH::get_ptr
private
bool CLZH::HasCrc
private
uchar CLZH::HeaderLevel
private
uchar CLZH::HeaderSize
private
int CLZH::Image
private
long CLZH::Last_modified_stamp
private
FILETIME CLZH::LastAccessTime
private
FILETIME CLZH::LastWriteTime
private
const int CLZH::LZHEADER_STRAGE = 4096
staticprivate
char CLZH::Method[METHOD_TYPE_STRAGE]
private
int CLZH::MethodNum
private
char * CLZH::Methods
staticprivate
MYSTR CLZH::MethodText
private
uchar CLZH::Minor_version
private
MYSTR CLZH::Name
private
LONGLONG CLZH::OriginalSize
private
LONGLONG CLZH::PackedSize
private
float CLZH::Ratio
private
bool CLZH::TimeStampExist
private
int CLZH::TreeFolder
private
MYSTR CLZH::Type
private
const ushort CLZH::UNIX_FILE_REGULAR = 0100000
staticprivate
ushort CLZH::Unix_gid
private
time_t CLZH::Unix_last_modified_stamp
private
ushort CLZH::Unix_mode
private
const ushort CLZH::UNIX_RW_RW_RW = 0000666
staticprivate
ushort CLZH::Unix_uid
private

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