Open 3D Engine AzCore API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
AZ::JsonSerializationMetadata Class Referencefinal

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.
 

Detailed Description

Holds a collection of generic settings objects to be used by custom serializers.

Member Function Documentation

◆ Add() [1/2]

template<typename MetadataT >
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.

◆ Add() [2/2]

template<typename MetadataT >
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.

◆ Create()

template<typename MetadataT , typename... Args>
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.


The documentation for this class was generated from the following files: