Vulkan Schnee
0.0.1
High-performance rendering engine
Loading...
Searching...
No Matches
JsonHandler.cpp
Go to the documentation of this file.
1
#include "
Engine/Files/JsonHandler.h
"
2
#include "
Engine/Files/FileHandler.h
"
3
#include <fstream>
4
#include <json.hpp>
5
6
namespace
EngineCore
{
7
8
using
json
= nlohmann::json;
9
10
nlohmann::json
JsonHandler::loadJson
(std::filesystem::path path) {
11
std::ifstream fileInputStream =
FileHandler::readFileAsStream
(path);
12
return
json::parse(fileInputStream);
13
}
14
}
FileHandler.h
JsonHandler.h
EngineCore::JsonHandler::loadJson
static nlohmann::json loadJson(std::filesystem::path path)
Definition
JsonHandler.cpp:10
FileHandler::readFileAsStream
static std::ifstream readFileAsStream(const std::filesystem::path &path)
Definition
FileHanlder.cpp:37
EngineCore
Log category system implementation.
Definition
CameraComponent.cpp:8
EngineCore::json
nlohmann::json json
Definition
JsonHandler.cpp:8
Engine
src
Engine
Files
JsonHandler.cpp
Generated by
1.14.0