![]() |
Shamrock 2025.10.0
Astrophysical Code
|
Polymorphic JSON serialization via a type registry. More...
#include "shambase/SourceLocation.hpp"#include "sham/format/format.hpp"#include <nlohmann/json.hpp>#include <source_location>#include <unordered_map>#include <concepts>#include <functional>#include <memory>#include <stdexcept>#include <string>Go to the source code of this file.
Classes | |
| struct | shamrock::solvergraph::JsonSerializable |
| Base interface for types that can be serialized to and from JSON. More... | |
| class | shamrock::solvergraph::JsonSerializable_registry |
| Singleton registry mapping type names to JSON factory functions. More... | |
Namespaces | |
| namespace | shamrock |
| namespace for the main framework | |
Concepts | |
| concept | shamrock::solvergraph::JsonDeserializable |
| Concept for types that can be registered for polymorphic JSON deserialization. | |
Polymorphic JSON serialization via a type registry.
Provides a base interface and a singleton registry so derived types can be serialized to JSON and reconstructed polymorphically from a "type" field.
Definition in file JsonSerializable.hpp.