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: