#include "rfl.hpp" #include "rfl/toml.hpp" #include #include #include #include "fourdst/config/config.h" struct Other { std::array a{}; std::vector b{}; double c; }; struct Location { double x; double y; Other other{}; }; struct Person { std::string name{}; std::string address{}; double height{}; Location location{}; }; int main() { const fourdst::config::Config personConfig; personConfig.save("Example.toml"); fourdst::config::Config personConfigToLoad; personConfigToLoad.load("Example.toml"); personConfigToLoad.save_schema("ExampleSchema.schema.json"); }