UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
Fixer.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
7
8#define UE_API COREUOBJECT_API
9
10namespace UE::DataValidation
11{
12
20struct IFixer : TSharedFromThis<IFixer>
21{
22 virtual ~IFixer() = default;
23
25 virtual EFixApplicability GetApplicability(int32 FixIndex) const = 0;
27 virtual FFixResult ApplyFix(int32 FixIndex) = 0;
28
33 template <typename FixerType, typename... ArgTypes>
35 {
36 return FixerType::Create(AsShared(), Forward<ArgTypes>(Args)...);
37 }
38
44};
45
46}
47
48#undef UE_API
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define UE_API
Definition SColorGradingComponentViewer.h:12
EFixApplicability
Definition TokenizedMessage.h:785
Definition Text.h:385
Definition SharedPointer.h:1640
TSharedRef< IFixer, Mode > AsShared()
Definition SharedPointer.h:1650
Definition SharedPointer.h:153
Definition TokenizedMessage.h:756
Definition TokenizedMessage.h:761
Definition Fixer.h:21
TSharedRef< FixerType > WrappedIn(ArgTypes &&... Args)
Definition Fixer.h:34
virtual EFixApplicability GetApplicability(int32 FixIndex) const =0
UE_API TSharedRef< FFixToken > CreateToken(const FText &Label)
Definition Fixer.cpp:12
virtual FFixResult ApplyFix(int32 FixIndex)=0
virtual ~IFixer()=default