|
slang-netlist
0.9.0
|
#include <NetlistSerializer.hpp>
Static Public Member Functions | |
| static auto | serialize (NetlistGraph const &graph) -> std::string |
Serialise graph to a pretty-printed JSON string. | |
| static void | deserialize (std::string_view json, NetlistGraph &graph) |
Static Public Attributes | |
| static constexpr int | formatVersion = 2 |
Serialise and deserialise a NetlistGraph to/from JSON.
Format (version 2):
|
static |
Deserialise a JSON string into graph. The graph must be empty. FileTable is populated from the JSON.
| std::runtime_error | on parse failure or unsupported version. |
|
static |
Serialise graph to a pretty-printed JSON string.
|
staticconstexpr |