// Copyright Epic Games, Inc. All Rights Reserved.
using System;
namespace UnrealBuildTool
{
///
/// Attribute indicating a value which should be populated from a UE .ini config file
///
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
public sealed class ConfigFileAttribute : Attribute
{
///
/// Name of the config hierarchy to read from
///
public ConfigHierarchyType ConfigType { get; }
///
/// Section containing the setting
///
public string SectionName { get; }
///
/// Key name to search for
///
public string? KeyName { get; }
///
/// Constructor
///
/// Type of the config hierarchy to read from
/// Section containing the setting
/// Key name to search for. Optional; uses the name of the field if not set.
public ConfigFileAttribute(ConfigHierarchyType configType, string sectionName, string? keyName = null)
{
ConfigType = configType;
SectionName = sectionName;
KeyName = keyName;
}
}
}