6#include <unordered_map>
38 std::string
from(
const std::unordered_map<std::string, std::string>& map,
int pretty_print = 4) const noexcept;
44 bool from(const std::
string& s, std::unordered_map<std::
string, std::
string>& m) const noexcept;
50 bool load(const std::
string& filename, std::unordered_map<std::
string, std::
string>& m) const noexcept;
54 class json_helper_impl;
55 std::unique_ptr<json_helper_impl> impl;
JSON helper class.
Definition json_helper.h:14
json_helper()
Default constructor.
bool load(const std::string &filename, std::unordered_map< std::string, std::string > &m) const noexcept
Parse a JSON file into a C++ map from a file on disk.
std::string from(const std::unordered_map< std::string, std::string > &map, int pretty_print=4) const noexcept
Get the contents of a map as a string in JSON format.
~json_helper()
Destructor.
Namespace for the maze builder.
Definition algo_interface.h:9