// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace UnrealBuildTool
{
///
/// Attribute indicating a value which should be populated from a UE4 .ini config file
///
[AttributeUsage(AttributeTargets.Field)]
class ConfigFileAttribute : Attribute
{
///
/// Name of the config hierarchy to read from
///
public ConfigHierarchyType ConfigType;
///
/// Section containing the setting
///
public string SectionName;
///
/// Key name to search for
///
public string KeyName;
///
/// 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)
{
this.ConfigType = ConfigType;
this.SectionName = SectionName;
this.KeyName = KeyName;
}
}
}