Files
UnrealEngineUWP/Engine/Source/Programs/UnrealBuildTool/System/ConfigFileAttribute.cs
jonathan adamczewski c7aeb00f62 UnrealBuildTool: Remove various references to UE4.
#jira UE-111420
#trivial
#preflight none

#ROBOMERGE-AUTHOR: jonathan.adamczewski
#ROBOMERGE-SOURCE: CL 18565554 in //UE5/Release-5.0/... via CL 18565574
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Staging -> Release-Engine-Test) (v899-18417669)

[CL 18565586 by jonathan adamczewski in ue5-release-engine-test branch]
2022-01-10 16:46:00 -05:00

46 lines
1.2 KiB
C#

// Copyright Epic Games, Inc. All Rights Reserved.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace UnrealBuildTool
{
/// <summary>
/// Attribute indicating a value which should be populated from a UE .ini config file
/// </summary>
[AttributeUsage(AttributeTargets.Field)]
public class ConfigFileAttribute : Attribute
{
/// <summary>
/// Name of the config hierarchy to read from
/// </summary>
public ConfigHierarchyType ConfigType;
/// <summary>
/// Section containing the setting
/// </summary>
public string SectionName;
/// <summary>
/// Key name to search for
/// </summary>
public string? KeyName;
/// <summary>
/// Constructor
/// </summary>
/// <param name="ConfigType">Type of the config hierarchy to read from</param>
/// <param name="SectionName">Section containing the setting</param>
/// <param name="KeyName">Key name to search for. Optional; uses the name of the field if not set.</param>
public ConfigFileAttribute(ConfigHierarchyType ConfigType, string SectionName, string? KeyName = null)
{
this.ConfigType = ConfigType;
this.SectionName = SectionName;
this.KeyName = KeyName;
}
}
}