Archived
1
Fork 0
This repository has been archived on 2025-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
libxiv/include/exdparser.h
Joshua Goins c78a1ab245 Big refactoring commit pt. 2
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.
2022-04-17 19:08:34 -04:00

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);