![]() |
OpenPFC
0.1.4
Phase Field Crystal simulation framework
|
Convert TOML data to nlohmann::json format. More...
#include <nlohmann/json.hpp>#include <toml++/toml.hpp>

Go to the source code of this file.
Functions | |
| nlohmann::json | pfc::utils::toml_to_json (const toml::node &node_ref) |
| Convert a TOML node to nlohmann::json. | |
| nlohmann::json | pfc::utils::toml_to_json (const toml::table &table) |
| Convert a TOML table to nlohmann::json. | |
| nlohmann::json | pfc::utils::toml_to_json (const toml::node_view< const toml::node > &node_view) |
| Convert a TOML node_view to nlohmann::json. | |
Convert TOML data to nlohmann::json format.
This utility provides conversion from TOML format to JSON format, allowing TOML configuration files to be used with existing JSON parsing code.
|
inline |
Convert a TOML node to nlohmann::json.
Handles all TOML node types (table, array, string, integer, float, boolean, date, time, etc.) and converts them to appropriate JSON types.
| node | TOML node to convert |


|
inline |
Convert a TOML node_view to nlohmann::json.
Overload for node_view (used when accessing array elements)
| node_view | TOML node_view to convert |

|
inline |
Convert a TOML table to nlohmann::json.
Recursively converts TOML data structures to JSON format, preserving all data types and structure.
| table | TOML table to convert |
