Holds a collection of generic settings objects to be used by custom serializers. More...
#include <JsonSerializationMetadata.h>
Public Member Functions | |
template<typename MetadataT , typename... Args> | |
bool | Create (Args &&... args) |
template<typename MetadataT > | |
bool | Add (MetadataT &&data) |
template<typename MetadataT > | |
bool | Add (const MetadataT &data) |
template<typename MetadataT > | |
MetadataT * | Find () |
Returns settings of the type MetadataT, or null if no settings of that type exists. | |
template<typename MetadataT > | |
const MetadataT * | Find () const |
Returns settings of the type MetadataT, or null if no settings of that type exists. | |
Holds a collection of generic settings objects to be used by custom serializers.
bool AZ::JsonSerializationMetadata::Add | ( | const MetadataT & | data | ) |
Adds a new settings object to the metadata collection. Only one object of the same type can be added or created. Returns false if an object of this type was already added.
bool AZ::JsonSerializationMetadata::Add | ( | MetadataT && | data | ) |
Adds a new settings object to the metadata collection. Only one object of the same type can be added or created. Returns false if an object of this type was already added.
bool AZ::JsonSerializationMetadata::Create | ( | Args &&... | args | ) |
Creates a new settings object in the metadata collection. Only one object of the same type can be added or created. Returns false if an object of this type was already added.