Inherits AZ::JsonBaseContext.
Public Member Functions | |
JsonDeserializerContext (JsonDeserializerSettings &settings) | |
JsonDeserializerContext (const JsonDeserializerContext &)=delete | |
JsonDeserializerContext (JsonDeserializerContext &&)=delete | |
JsonDeserializerContext & | operator= (const JsonDeserializerContext &)=delete |
JsonDeserializerContext & | operator= (JsonDeserializerContext &&)=delete |
bool | ShouldClearContainers () const |
Public Member Functions inherited from AZ::JsonBaseContext | |
JsonBaseContext (JsonSerializationMetadata &metadata, JsonSerializationResult::JsonIssueCallback reporting, StackedString::Format pathFormat, SerializeContext *serializeContext, JsonRegistrationContext *registrationContext) | |
JsonSerializationResult::Result | Report (JsonSerializationResult::ResultCode result, AZStd::string_view message) const |
JsonSerializationResult::Result | Report (JsonSerializationResult::Tasks task, JsonSerializationResult::Outcomes outcome, AZStd::string_view message) const |
void | PushReporter (JsonSerializationResult::JsonIssueCallback callback) |
Push a (temporary) new callback to the reporter stack. The top reporter will always be used. | |
void | PopReporter () |
const JsonSerializationResult::JsonIssueCallback & | GetReporter () const |
Get the currently active reporter. | |
JsonSerializationResult::JsonIssueCallback & | GetReporter () |
Get the currently active reporter. | |
void | PushPath (AZStd::string_view child) |
Add a child name to the path. | |
void | PushPath (size_t index) |
Add an index to the path. | |
void | PopPath () |
Remove a previously added entry to the path. | |
const StackedString & | GetPath () const |
Gets the path to the element that's currently being operated on. | |
JsonSerializationMetadata & | GetMetadata () |
const JsonSerializationMetadata & | GetMetadata () const |
SerializeContext * | GetSerializeContext () |
const SerializeContext * | GetSerializeContext () const |
JsonRegistrationContext * | GetRegistrationContext () |
const JsonRegistrationContext * | GetRegistrationContext () const |
Additional Inherited Members | |
Protected Attributes inherited from AZ::JsonBaseContext | |
AZStd::stack< JsonSerializationResult::JsonIssueCallback > | m_reporters |
StackedString | m_path |
Path to the element that's currently being operated on. | |
JsonSerializationMetadata & | m_metadata |
SerializeContext * | m_serializeContext = nullptr |
The Serialize Context that can be used to retrieve meta data during processing. | |
JsonRegistrationContext * | m_registrationContext = nullptr |
The registration context for the json serialization. This can be used to retrieve the handlers for specific types. | |
bool AZ::JsonDeserializerContext::ShouldClearContainers | ( | ) | const |
If true then all containers should be cleared in the object before applying the data from the json document. If set to false any values in the container will be kept and not overwritten. Note that this does not apply to containers where elements have a fixed location such as smart pointers or AZStd::tuple.