25 lines
600 B
C++
25 lines
600 B
C++
#pragma once
|
|
|
|
#include "engine/workbook.hpp"
|
|
|
|
#include <string>
|
|
#include <string_view>
|
|
|
|
namespace htab {
|
|
|
|
std::string save_native_string(const Workbook& wb);
|
|
|
|
bool save_native_file(const Workbook& wb,
|
|
const std::string& path,
|
|
std::string* err = nullptr);
|
|
|
|
bool load_native_string(Workbook& wb,
|
|
std::string_view json_text,
|
|
std::string* err = nullptr);
|
|
|
|
bool load_native_file(Workbook& wb,
|
|
const std::string& path,
|
|
std::string* err = nullptr);
|
|
|
|
} // namespace htab
|