-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathextract_item.h
41 lines (35 loc) · 887 Bytes
/
extract_item.h
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
38
39
40
41
// CEZEO software Ltd. https://www.cezeo.com
#pragma once
#include <fdi.h>
#include <windows.h>
#include <string>
namespace cab
{
class extract_item
{
public:
extract_item(const std::wstring& name, const size_t size) : fileName(name), uncompressedFileSize(size){};
virtual ~extract_item(){};
virtual FNOPEN(fnFileOpen) = 0;
// hf - this pointer
virtual FNREAD(fnFileRead) = 0;
// hf - this pointer
virtual FNWRITE(fnFileWrite) = 0;
// hf - this pointer
virtual FNSEEK(fnFileSeek) = 0;
// hf - this pointer
virtual FNCLOSE(fnFileClose) = 0;
std::wstring GetFileName() const
{
return fileName;
}
void SetFileName(const std::wstring& name)
{
fileName = name;
}
protected:
size_t uncompressedFileSize;
std::wstring fileName;
};
typedef extract_item* PEXTRACTITEM;
}; // namespace cab