#include <SerializeContext.h>
Inherited by AZ::SerializeGenericTypeInfo< Data::Asset< T > >::DataConverter.
Public Member Functions | |
virtual | ~IDataConverter ()=default |
virtual bool | CanConvertFromType (const TypeId &convertibleTypeId, const SerializeContext::ClassData &classData, SerializeContext &) |
virtual bool | ConvertFromType (void *&convertibleTypePtr, const TypeId &convertibleTypeId, void *classPtr, const SerializeContext::ClassData &classData, SerializeContext &) |
Data Converter interface which can be used to provide a conversion operation from to unrelated C++ types derived class to base class casting is taken care of through the RTTI system so those relations should not be check within this class
|
virtualdefault |
Callback to determine if the supplied convertible type can be stored in an instance of classData
convertibleTypeId | type to check to determine if it can converted to an element of class represent by this Class Data |
classData | reference to the metadata representing the type stored in classPtr |
|
virtual |
Callback that can be used to retrieve a memory address in which to store an element of the supplied convertible type
convertibleTypePtr | result pointer that should be populated with an address that can store an element of the convertible type |
convertibleTypeId | type to check to determine if it can converted to an element of class represent by this Class Data |
classPtr | memory address of the class represented by the @classData type |
classData | reference to the metadata representing the type stored in classPtr |
Reimplemented in AZ::SerializeGenericTypeInfo< Data::Asset< T > >::DataConverter.