-
Notifications
You must be signed in to change notification settings - Fork 1
/
VMSBackupTypes.h
81 lines (62 loc) · 2.35 KB
/
VMSBackupTypes.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#ifndef __VMSBackupTypes_H__
#define __VMSBackupTypes_H__
#include <stdint.h>
#include <map>
#include <string>
//////////////////////////////////////////////////////////////////////////////
// Global Type Definitions
// Primarily command line parameters with some dynamic data logged during the
// file processing phases.
struct SBackupParameters
{
// Verbose Options
bool bOutputSuppress;
bool bOutputBrief;
bool bOutputFull;
bool bOutputCSV;
// Extraction Options
// Extract
bool bExtract;
// Manual selection of Extract Mode
// Smart Mode auto selects ASCII/Binary per file based on the contents.
// ASCII Mode will perform file interpretations related to end of line
// protocols.
// Binary Mode will extract the data without interpretation with the
// exception of records, which shall strip the length fields.
// Raw Mode will extract the data with NO interpreation, leaving records
// with their length fields intact.
bool bExtractModeSmart;
bool bExtractModeASCII;
bool bExtractModeBinary;
bool bExtractModeRaw;
// A 2 pass mechanism is required if :
// 1/ Smart Parsing is in effect
// 2/ Latest Revision Extacting is suppressed
bool bExtractFirstPass;
bool bIgnoreVBN;
// Current File Data
bool bLFDetected;
uint32_t uiFilePointer;
uint32_t uiFileSize;
int8_t cFormat;
uint16_t uiRemainingStartPos;
uint16_t uiRemainingRecordLength;
// Extract Mask
char* szExtractMask;
char* szExtractMaskVersion;
int iExtractVersion;
// Folder Extract
bool bExtractFolder;
// Extract Older Versions
bool bExtractWithVersion;
// Debug Mode
bool bExtractDebug;
bool bExtractDebugEnhanced;
};
// Map used by the algorithm determining whether to extract a file
// revision
typedef std::map<std::string, int> FileVersionType;
// Map used by the Smart Parser algorithm to determine whether a file
// is ASCII or Binary
typedef std::map<std::string, bool> FileFormatType;
#endif // __VMSBackupTypes_H__