3 #include "cafChildArrayField.h"
4 #include "cafChildField.h"
5 #include "cafFieldJsonCapability.h"
7 #include <nlohmann/json.hpp>
17 template <
typename FieldType>
29 void writeToJson( nlohmann::json& jsonElement,
const Serializer& serializer )
const override;
37 template <
typename DataType>
50 void readFromJson(
const nlohmann::json& jsonElement,
const Serializer& serializer )
override;
51 void writeToJson( nlohmann::json& jsonElement,
const Serializer& serializer )
const override;
59 template <
typename DataType>
72 void readFromJson(
const nlohmann::json& jsonElement,
const Serializer& serializer )
override;
73 void writeToJson( nlohmann::json& jsonElement,
const Serializer& serializer )
const override;
81 template <
typename FieldType>
82 void AddIoCapabilityToField( FieldType* field )
84 if ( !field->template capability<FieldJsonCapability>() )
92 #include "cafFieldJsonCapabilitySpecializations.inl"
Field class to handle a collection of Object derived pointers The ChildArrayField will take over owne...
Definition: cafChildArrayField.h:24
Field class to handle a pointer to a caffa Object.
Definition: cafChildField.h:27
Base class for all fields, making it possible to handle them generically.
Definition: cafFieldHandle.h:23
Definition: cafFieldJsonCapabilitySpecializations.h:19
void readFromJson(const nlohmann::json &jsonElement, const Serializer &serializer) override
Definition: cafFieldJsonCapabilitySpecializations.inl:24
Definition: cafFieldJsonCapability.h:24
Definition: cafSerializer.h:36
Main Caffa namespace.
Definition: __init__.py:1