Navigation
API > API/Plugins > API/Plugins/TedsCore
Turn-key translator to convert columns to mementos and back Creates a new struct that has the same UPROPERTIES the ColumnType To opt-in a column to be mementoized, override the GetColumnType with the column that should be mementoized
As an example, suppose there was a column defined as: USTRUCT()structFPathColumn:publicFEditorDataStorageColumn{FStringPath;};
To opt into a default memento translator for FPathColumn, define a default translator: UCLASS()classUTypedElementPathColumnTranslator:publicUTypedElementDefaultMementoTranslator{virtualconstUScriptStruct*GetColumnType()constoverride{returnFPathColumn::StaticStruct;}}; The system will take care of doing the required operations when rows are deleted that that have both FTypedElementMementoOnDelete and FPathColumn columns
| Name | UTedsDefaultMementoTranslator |
| Type | class |
| Header File | /Engine/Plugins/Experimental/EditorDataStorage/Source/TedsCore/Public/Memento/TypedElementMementoTranslators.h |
| Include Path | #include "Memento/TypedElementMementoTranslators.h" |
Syntax
UCLASS (Abstract)
class UTedsDefaultMementoTranslator : public UTedsMementoTranslatorBase
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UTedsMementoTranslatorBase → UTedsDefaultMementoTranslator
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| MementoizedColumnProperties | TArray< const FProperty * > | Memento/TypedElementMementoTranslators.h | ||
| MementoProperties | TArray< const FProperty * > | Memento/TypedElementMementoTranslators.h | ||
| MementoType | TObjectPtr< const UScriptStruct > | Memento/TypedElementMementoTranslators.h |
Functions
Public
Overridden from UTedsMementoTranslatorBase
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual const UScriptStruct * GetColumnType() |
Override this in derived classes to get automatic mementoization of the given column | Memento/TypedElementMementoTranslators.h | |
virtual const UScriptStruct * GetMementoType() |
Type information for the memento | Memento/TypedElementMementoTranslators.h | |
virtual void TranslateColumnToMemento
(
const void* TypeErasedColumn, |
Implements the logic to convert a column to a memento | Memento/TypedElementMementoTranslators.h | |
virtual void TranslateMementoToColumn
(
const void* TypeErasedMemento, |
Implements the logic to convert a memento to a column | Memento/TypedElementMementoTranslators.h |
Overridden from UObject
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void PostInitProperties() |
Memento/TypedElementMementoTranslators.h |