|
ACTS
Experiment-independent tracking
|
Static class performing the JSON conversion of surface material. More...
#include <ActsPlugins/Json/SurfaceMaterialJsonConverter.hpp>
Classes | |
| struct | Config |
| Configuration struct. More... | |
Public Types | |
| using | DecodeContext = detail::MaterialJsonDecodeContext |
| Context carrying the slab stores of the document being read. | |
| using | Decoder |
| Decoder type for the surface material. | |
| using | EncodeContext = detail::MaterialJsonEncodeContext |
| Context collecting the slab stores of the document being written. | |
| using | Encoder |
| Encoder type for the surface material. | |
Public Member Functions | |
| SurfaceMaterialJsonConverter ()=delete | |
| Delete the default constructor as the class is purely static. | |
Static Public Member Functions | |
| static std::unique_ptr< const ISurfaceMaterial > | fromJson (const nlohmann::json &jMaterial, const Config &config=Config::defaultConfig(), const DecodeContext *context=nullptr) |
| Convert a json payload back into surface material. | |
| static nlohmann::json | toJson (const ISurfaceMaterial &material, const Config &config=Config::defaultConfig(), EncodeContext *context=nullptr) |
| Convert surface material into its json payload. | |
Static class performing the JSON conversion of surface material.
The encoding side is a TypeDispatcher registered on the concrete (or, for the grid family, the abstract templated) material types, the decoding side a JsonKindDispatcher keyed on the payload type tag.
Decoder type for the surface material.
Encoder type for the surface material.
|
static |
Convert a json payload back into surface material.
| jMaterial | the json payload of the material |
| config | the converter configuration |
| context | the document context holding the slab stores, or a nullptr if the payload is expected to be self-contained |
|
static |
Convert surface material into its json payload.
| material | the material to be converted |
| config | the converter configuration |
| context | the document context collecting the slab stores, or a nullptr to inline any slab store and keep the payload self-contained |
material key of a surface