-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathFile.h
More file actions
43 lines (35 loc) · 726 Bytes
/
File.h
File metadata and controls
43 lines (35 loc) · 726 Bytes
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
42
43
#ifndef _EVTX_FILE_
#define _EVTX_FILE_
#include "DataTypes.h"
#include "Header.h"
#include "Chunk.h"
namespace Evtx {
class File
{
/* public constructors */
public:
File(char* filename);
~File(void);
/* public methods */
public:
bool isDirty(void);
bool isFull(void);
uint16 getChunkCount(void);
bool CRCPass(void);
uint16 getMajorVersion(void);
uint16 getMinorVersion(void);
int64 getCurrentChunkNum(void);
int64 getNextRecordNum(void);
void dumpTo(char* filename, uint32 mode);
/* protected methods */
protected:
bool loadNextChunk();
/* protected members */
protected:
FILE* stream;
Header* header;
uint16 nextChunkIndex;
Chunk* currentChunk;
};
}
#endif