Inherits AZ::BaseJsonSerializer.
Public Member Functions | |
| AZ_RTTI (JsonBasicContainerSerializer, "{3E2D0315-BC21-4127-91A3-E5EFE6826ECE}", BaseJsonSerializer) | |
| JsonSerializationResult::Result | Load (void *outputValue, const Uuid &outputValueTypeId, const rapidjson::Value &inputValue, JsonDeserializerContext &context) override |
| JsonSerializationResult::Result | Store (rapidjson::Value &outputValue, const void *inputValue, const void *defaultValue, const Uuid &valueTypeId, JsonSerializerContext &context) override |
Public Member Functions inherited from AZ::BaseJsonSerializer | |
| AZ_RTTI (BaseJsonSerializer, "{7291FFDC-D339-40B5-BB26-EA067A327B21}") | |
| virtual OperationFlags | GetOperationsFlags () const |
| Returns the operation flags which tells the Json Serialization how this custom json serializer can be used. | |
Public Attributes | |
| AZ_CLASS_ALLOCATOR_DECL | |
Additional Inherited Members | |
Public Types inherited from AZ::BaseJsonSerializer | |
| enum class | ContinuationFlags { None = 0 , ResolvePointer = 1 << 0 , ReplaceDefault = 1 << 1 , LoadAsNewInstance = 1 << 2 , IgnoreTypeSerializer = 1 << 3 } |
| enum class | OperationFlags { None = 0 , ManualDefault = 1 << 0 , InitializeNewInstance = 1 << 1 } |
|
overridevirtual |
Transforms the data from the rapidjson Value to outputValue, if the conversion is possible and supported. The serializer is responsible for casting to the proper type and safely writing to the outputValue memory.
Reimplemented from AZ::BaseJsonSerializer.
|
protectedvirtual |
When this function returns true then the container will be cleared before applying the data from the json document. When returns false any elements in the container will be kept and not overwritten.
|
overridevirtual |
Write the input value to a rapidjson value if the default value is not null and doesn't match the input value, otherwise an error is returned and sets the rapidjson value to a null value.
Reimplemented from AZ::BaseJsonSerializer.