-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathTZ.h
More file actions
37 lines (29 loc) · 1.06 KB
/
TZ.h
File metadata and controls
37 lines (29 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/////////////////////////////////////////////////////////////////////////////
//TZ.h
/////////////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "TArchive.h"
#ifndef _TZ_CLASS_H
#define _TZ_CLASS_H
class TZ: public TArchive
{
private:
//zagolovok arhiva
typedef struct __Z_HEAD
{
BYTE ID1;
BYTE ID2;
BYTE ID3;
} Z_HEAD;
//strukturi dlya chteniya arhiva
Z_HEAD m_ARC_HEAD; //zagolovok arhiva
public:
TZ(DataForArchive& dfa, LanguageMessages& langmsg, LanguageResults& langres, char* namearch = "Z"): TArchive(dfa, langmsg, langres, namearch) {;}
~TZ() {;}
int TestFile (char*); //fayl yavlyaetsya arhivom Z
int AnalyzeInfoOfArc(char*); //opredelit' parametri (info) arhiva
ULONGLONG GetPackSizeFiles() {return m_PackSizeFiles;} //vozvrat sjatogo razmera faylov v BYTEs
ULONGLONG GetArchiveSize () {return m_ArchiveSize;} //vozvrat razmera arhiva v BYTEs
unsigned GetNumberFiles () {return m_NumberFiles;} //vozvrat kolichestvo faylov v arhive
};
#endif //_TZ_CLASS_H