Smolgui
Immediate gui library based on SFML
Theme:
Default
Round
Robot
Loading...
Searching...
No Matches
LoadJson.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <iomanip>
4
#include <fstream>
5
#include <nlohmann/json.hpp>
6
7
// for readability
8
using
json
= nlohmann::json;
9
10
namespace
sgui
11
{
15
void
saveInFile
(
const
json
& out,
const
std::string& file,
const
bool
compact =
false
);
16
20
json
loadFromFile
(
const
std::string& file);
21
22
}
// namespace sgui
json
nlohmann::json json
Definition
LoadJson.h:8
sgui
Definition
Interpolation.h:16
sgui::saveInFile
void saveInFile(const json &out, const std::string &file, const bool compact)
save json to file
Definition
LoadJson.cpp:6
sgui::loadFromFile
json loadFromFile(const std::string &file)
load json from file
Definition
LoadJson.cpp:21
src
sgui
Serialization
LoadJson.h
Generated by
1.16.1