From 172e45412cf97c5e9df27710af0c5cc0cdfa9b75 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Tue, 12 Apr 2022 15:27:42 -0400 Subject: [PATCH] Output uint64/int64 raw in exdparser --- include/exdparser.h | 1 + src/exdparser.cpp | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/include/exdparser.h b/include/exdparser.h index 9e2379d..c61b8c4 100644 --- a/include/exdparser.h +++ b/include/exdparser.h @@ -10,6 +10,7 @@ struct ExcelDataPagination; struct Column { std::string data; std::string type; // for debug + int64_t uint64Data = 0; }; struct Row { diff --git a/src/exdparser.cpp b/src/exdparser.cpp index 2572ab8..6860fa2 100644 --- a/src/exdparser.cpp +++ b/src/exdparser.cpp @@ -111,8 +111,6 @@ EXD readEXD(EXH& exh, std::string_view path, ExcelDataPagination& page) { fread(&byte, sizeof(uint8_t), 1, file); } - fmt::print("read {}\n", string); - c.data = string; c.type = "String"; } @@ -148,10 +146,12 @@ EXD readEXD(EXH& exh, std::string_view path, ExcelDataPagination& page) { case Int64: c.data = readData(file, offset + column.offset); c.type = "Int"; + c.uint64Data = readDataRaw(file, offset + column.offset); break; case UInt64: c.data = readData(file, offset + column.offset); c.type = "Unsigned Int"; + c.uint64Data = readDataRaw(file, offset + column.offset); break; case PackedBool0: case PackedBool1: