Now instead of hammering your working directory, all operations happen in-memory using two new classes, MemoryBuffer and MemorySpan. This has already fixed numerous bugs especially around handling model files. All operations on files inside dat's now happen on memory buffers, with an option to write them to a file. A lot of now useless debug messages are removed too, as that made some operations needlessly bound by the speed of your console output.
28 lines
No EOL
516 B
C++
28 lines
No EOL
516 B
C++
#pragma once
|
|
|
|
#include <string_view>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
#include "memorybuffer.h"
|
|
|
|
struct EXH;
|
|
struct ExcelDataPagination;
|
|
|
|
struct Column {
|
|
std::string data;
|
|
std::string type; // for debug
|
|
int64_t uint64Data = 0;
|
|
};
|
|
|
|
struct Row {
|
|
std::vector<Column> data;
|
|
};
|
|
|
|
struct EXD {
|
|
std::vector<Row> rows;
|
|
};
|
|
|
|
std::string getEXDFilename(EXH& exh, std::string_view name, std::string_view lang, ExcelDataPagination& page);
|
|
|
|
EXD readEXD(EXH& exh, MemorySpan data, ExcelDataPagination& page); |