SatDump 2.0.0-alpha-76a915210
Loading...
Searching...
No Matches
dbf_file.h
1#pragma once
2
3#include <cstdint>
4#include "nlohmann/json.hpp"
5
6namespace dbf_file
7{
8 // #pragma pack(push)
9 // #pragma pack(1)
10 struct DbfHeader
11 {
12 uint8_t m_iType;
13 char m_arcLastUpdate[3];
14
15 uint32_t m_uNumRecords;
16
17 uint16_t m_uFirstRecordOffset;
18 uint16_t m_uRecordSize;
19
20 char m_uReserved[15];
21 uint8_t m_fFlags;
22 uint8_t m_uCodePageMark;
23
24 char m_uReserved2[2];
25 };
26 // #pragma pack(pop)
27
28#pragma pack(push)
29#pragma pack(1)
30 struct DbfRecord
31 {
32 char m_archName[11];
33 char chFieldType;
34
35 uint32_t m_uDisplacement;
36 uint8_t m_uLength;
37 uint8_t m_uDecimalPlaces;
38 uint8_t m_fFlags;
39
40 uint32_t m_uNextValue;
41 uint8_t m_uStepValue;
42 char m_uReserved[8];
43 };
44#pragma pack(pop)
45
46 nlohmann::json readDbfFile(std::string path);
47}
Definition dbf_file.h:11
Definition dbf_file.h:31