1
0
mirror of https://github.com/ScrelliCopter/tmx2gba.git synced 2025-02-21 03:29:25 +11:00

correctness

This commit is contained in:
2024-03-21 07:53:01 +11:00
parent 17de8ac3ec
commit 696057b5e6
8 changed files with 45 additions and 41 deletions

View File

@@ -10,6 +10,7 @@
#include <span>
#include <concepts>
#include <fstream>
#include <filesystem>
template <typename T>
concept NumericType = std::integral<T> || std::floating_point<T>;
@@ -17,7 +18,7 @@ concept NumericType = std::integral<T> || std::floating_point<T>;
class HeaderWriter
{
std::ofstream stream;
std::string name;
std::string mName;
void WriteGuardStart();
void WriteGuardEnd();
@@ -25,7 +26,7 @@ class HeaderWriter
public:
~HeaderWriter();
[[nodiscard]] bool Open(const std::string_view path, const std::string_view name);
[[nodiscard]] bool Open(const std::filesystem::path& path, const std::string_view name);
void WriteDefine(const std::string_view name, const std::string_view value);
void WriteSymbol(const std::string_view name, const std::string_view type, std::size_t count);