UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
DeviceProfileMatching.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3/*=============================================================================
4 DeviceProfileFragment.h: Declares the UDeviceProfileFragment class.
5=============================================================================*/
6
7#pragma once
8
9#include "CoreMinimal.h"
11#include "DeviceProfileMatching.generated.h"
12
13USTRUCT()
15{
17
18 bool operator == (const FSelectedFragmentProperties& rhs) const
19 {
20 return Tag == rhs.Tag && Fragment == rhs.Fragment && bEnabled == rhs.bEnabled;
21 }
22
24 {
25 return !(*this == rhs);
26 }
27
28 // user defined 'Tag' for this fragment.
29 UPROPERTY()
31
32 // Actual name of the fragment to select
33 UPROPERTY()
34 FString Fragment;
35
36 // whether the fragment's cvars will be applied
37 UPROPERTY()
38 bool bEnabled = true;
39};
40
41USTRUCT()
43{
45
46 UPROPERTY()
47 FName Operator;
48
49 UPROPERTY()
50 FString Arg1;
51
52 UPROPERTY()
53 FString Arg2;
54
55 bool operator==(const FDPMatchingIfCondition& Other) const
56 {
57 return Operator == Other.Operator
58 && Arg1.Equals(Other.Arg1, ESearchCase::CaseSensitive)
59 && Arg2.Equals(Other.Arg2, ESearchCase::CaseSensitive);
60 }
61};
62
63USTRUCT()
65{
68
69 UPROPERTY()
70 FString RuleName;
71
72 UPROPERTY()
74
75 UPROPERTY()
76 FString AppendFragments;
77
78 UPROPERTY()
79 FString SetUserVar;
80
81 virtual const FDPMatchingRulestructBase* GetOnTrue() const { return nullptr; };
82 virtual const FDPMatchingRulestructBase* GetOnFalse() const { return nullptr; };
83
85 {
86 return IfConditions == Other.IfConditions
87 && RuleName.Equals(Other.RuleName, ESearchCase::CaseSensitive)
88 && AppendFragments.Equals(Other.AppendFragments, ESearchCase::CaseSensitive)
89 && SetUserVar.Equals(Other.SetUserVar, ESearchCase::CaseSensitive);
90 }
91};
92
93USTRUCT()
95{
97
98 UPROPERTY(config)
100
101 UPROPERTY(config)
103
104 virtual const FDPMatchingRulestructBase* GetOnTrue() const override { return OnTrue.Num() ? &OnTrue[0] : nullptr; };
105 virtual const FDPMatchingRulestructBase* GetOnFalse() const override { return OnFalse.Num() ? &OnFalse[0] : nullptr; };
106};
107
108USTRUCT()
110{
112 UPROPERTY(config)
114
115 UPROPERTY(config)
117
118 virtual const FDPMatchingRulestructBase* GetOnTrue() const override { return OnTrue.Num() ? &OnTrue[0] : nullptr; };
119 virtual const FDPMatchingRulestructBase* GetOnFalse() const override { return OnFalse.Num() ? &OnFalse[0] : nullptr; };
120};
121
122USTRUCT()
124{
126
127 UPROPERTY(config)
129 UPROPERTY(config)
131
132 virtual const FDPMatchingRulestructBase* GetOnTrue() const override { return OnTrue.Num() ? &OnTrue[0] : nullptr; };
133 virtual const FDPMatchingRulestructBase* GetOnFalse() const override { return OnFalse.Num() ? &OnFalse[0] : nullptr; };
134};
135
136
137USTRUCT()
139{
141
142 UPROPERTY(config)
144
145 UPROPERTY(config)
147
148 virtual const FDPMatchingRulestructBase* GetOnTrue() const override { return OnTrue.Num() ? &OnTrue[0] : nullptr; };
149 virtual const FDPMatchingRulestructBase* GetOnFalse() const override { return OnFalse.Num() ? &OnFalse[0] : nullptr; };
150};
151
152USTRUCT()
154{
156
157 UPROPERTY(config)
159
160 UPROPERTY(config)
162
163 virtual const FDPMatchingRulestructBase* GetOnTrue() const override { return OnTrue.Num() ? &OnTrue[0] : nullptr; };
164 virtual const FDPMatchingRulestructBase* GetOnFalse() const override { return OnFalse.Num() ? &OnFalse[0] : nullptr; };
165};
166
167USTRUCT()
169{
171
172 UPROPERTY(config)
174
175 UPROPERTY(config)
177
178 virtual const FDPMatchingRulestructBase* GetOnTrue() const override { return OnTrue.Num() ? &OnTrue[0] : nullptr; };
179 virtual const FDPMatchingRulestructBase* GetOnFalse() const override { return OnFalse.Num() ? &OnFalse[0] : nullptr; };
180};
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
return true
Definition ExternalRpcRegistry.cpp:601
UE_FORCEINLINE_HINT bool operator!=(const FIndexedPointer &Other) const
Definition LockFreeList.h:76
const bool
Definition NetworkReplayStreaming.h:178
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define USTRUCT(...)
Definition ObjectMacros.h:746
#define GENERATED_USTRUCT_BODY(...)
Definition ObjectMacros.h:767
Definition NameTypes.h:617
Definition Array.h:670
@ CaseSensitive
Definition CString.h:23
Definition DeviceProfileMatching.h:43
Definition DeviceProfileMatching.h:95
virtual const FDPMatchingRulestructBase * GetOnFalse() const override
Definition DeviceProfileMatching.h:105
Definition DeviceProfileMatching.h:110
virtual const FDPMatchingRulestructBase * GetOnFalse() const override
Definition DeviceProfileMatching.h:119
Definition DeviceProfileMatching.h:65
virtual const FDPMatchingRulestructBase * GetOnFalse() const
Definition DeviceProfileMatching.h:82
bool operator==(const FDPMatchingRulestructBase &Other) const
Definition DeviceProfileMatching.h:84
Definition DeviceProfileMatching.h:124
virtual const FDPMatchingRulestructBase * GetOnFalse() const override
Definition DeviceProfileMatching.h:133
Definition DeviceProfileMatching.h:139
virtual const FDPMatchingRulestructBase * GetOnFalse() const override
Definition DeviceProfileMatching.h:149
Definition DeviceProfileMatching.h:154
virtual const FDPMatchingRulestructBase * GetOnFalse() const override
Definition DeviceProfileMatching.h:164
Definition DeviceProfileMatching.h:169
virtual const FDPMatchingRulestructBase * GetOnFalse() const override
Definition DeviceProfileMatching.h:179
Definition DeviceProfileMatching.h:15
FName Tag
Definition DeviceProfileMatching.h:30