Loading...
Searching...
No Matches
json.h File Reference
#include <cstddef>#include <filesystem>#include <format>#include <initializer_list>#include <iterator>#include <stdexcept>#include <string>#include <string_view>#include <utility>#include <variant>#include <vector>Go to the source code of this file.
Classes | |
| class | opennn::Json |
| class | opennn::JsonDocument |
| class | opennn::JsonWriter |
Namespaces | |
| namespace | opennn |
Macros | |
| #define | OPENNN_JSON_H_ |
Functions | |
| template<typename Value> | |
| void | opennn::add_json_field (JsonWriter &writer, std::string_view name, Value &&value) |
| void | opennn::save_json_file (const std::filesystem::path &, const JsonWriter &) |
| template<typename Serializable> | |
| void | opennn::save_json_file (const std::filesystem::path &file_name, const Serializable &serializable) |
| void | opennn::write_json (JsonWriter &, std::initializer_list< std::pair< const char *, Json > >) |
| float | opennn::read_json_float (const Json *, std::string_view) |
| long long | opennn::read_json_index (const Json *, std::string_view) |
| bool | opennn::read_json_bool (const Json *, std::string_view) |
| std::string | opennn::read_json_string (const Json *, std::string_view) |
| std::vector< std::string > | opennn::read_json_strings (const Json *, std::string_view) |
| float | opennn::read_json_float (const Json *, std::string_view, float fallback) |
| long long | opennn::read_json_index (const Json *, std::string_view, long long fallback) |
| bool | opennn::read_json_bool (const Json *, std::string_view, bool fallback) |
| std::string | opennn::read_json_string (const Json *, std::string_view, std::string_view fallback) |
| std::string | opennn::read_json_string_fallback (const Json *, std::initializer_list< std::string_view >) |
| const Json * | opennn::require_json_field (const Json *, std::string_view) |
| template<typename Range> | |
| Json | opennn::json_array (const Range &values) |
| template<typename Func> | |
| void | opennn::for_json_items (const Json *parent, const char *tag, std::size_t count, Func func) |
| JsonDocument | opennn::load_json_file (const std::filesystem::path &) |
| const Json * | opennn::get_json_root (const JsonDocument &, std::string_view) |
Macro Definition Documentation
◆ OPENNN_JSON_H_
| #define OPENNN_JSON_H_ |