Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Misc
Inheritance Hierarchy
- TMapBase
- TSortableMapBase
- TMap
- FConfigFile
References
Module | Core |
Header | /Engine/Source/Runtime/Core/Public/Misc/ConfigCacheIni.h |
Include | #include "Misc/ConfigCacheIni.h" |
Syntax
class FConfigFile : private TMap< FString, FConfigSection >
Remarks
One config file.
Variables
Type | Name | Description | |
---|---|---|---|
![]() |
bool: 1 | bCanSaveAllSections | By default, we allow saving - this is going to be applied to config files that are not loaded from disk (when loading, this will get set to false, and then the ini sections will be checked) |
![]() |
bool: 1 | bHasPlatformName | |
![]() |
bool: 1 | bPythonConfigParserMode | |
![]() |
FConfigBranch * | Branch | |
![]() |
TArray< FConfigCommandlineOverride > | CommandlineOptions | The collection of overrides which stemmed from the commandline |
![]() |
bool: 1 | Dirty | |
![]() |
UE::ConfigAccessTracking::ELoadType | LoadType | |
![]() |
FName | Name | The name of this config file |
![]() |
bool: 1 | NoSave | |
![]() |
FString | PlatformName | |
![]() |
FName | Tag | Optional tag, (can tag files per plugin, etc) |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
FConfigFile () |
||
![]() |
FConfigFile
(
int32 |
||
![]() |
FConfigFile
(
const FConfigFile& Other |
||
![]() |
FConfigFile
(
FConfigFile&& Other |
Destructors
Type | Name | Description | |
---|---|---|---|
![]() |
~FConfigFile () |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
ValueType & | ||
![]() |
ValueType & | ||
![]() |
ValueType & | ||
![]() |
ValueType & | ||
![]() |
void | AddDynamicLayerToHierarchy
(
const FString& Filename |
Appends a new INI file to the SourceIniHierarchy and combines it with the current contents |
![]() |
void | AddMissingProperties
(
const FConfigFile& InSourceFile |
Adds any properties that exist in InSourceFile that this config file is missing |
![]() |
bool | AddToSection
(
const TCHAR* Section, |
Adds the given key/value pair to the Section. |
![]() |
bool | AddUniqueToSection
(
const TCHAR* Section, |
Adds the given key/value pair to the Section, if the pair didn't already exist This is equivalent to the + operator in .ini files |
![]() |
void | Append
(
TMap< FString, FConfigSection > Other |
|
![]() ![]() |
void | AppendExportedPropertyLine
(
FString& Out, |
Append a correctly escaped line to add to the config file for the given property |
![]() |
bool | ApplyFile
(
const FConfigCommandStream* File |
Apply the contents of the given file (which must have non-Combined ValueTypes stored in it, it is a logic error otherwise and will assert) The values in this file will be Combined type |
![]() ![]() |
TRangedForConstIterator | begin () |
|
![]() |
TRangedForIterator | begin () |
|
![]() |
bool | ||
![]() |
void | CombineFromBuffer
(
const FString& Buffer, |
|
![]() ![]() |
bool | ||
![]() ![]() |
bool | DoesSectionExist
(
const TCHAR* Section |
|
![]() |
void | Dump
(
FOutputDevice& Ar |
|
![]() |
void | ||
![]() ![]() |
TRangedForConstIterator | end () |
|
![]() |
TRangedForIterator | end () |
|
![]() |
FConfigSection * | ||
![]() ![]() |
const FConfigSection * | Replacement functionality of TMap so we can deprecate the direct access to FConfigSection | |
![]() |
ValueType & | ||
![]() |
const FConfigSection * | FindOrAddConfigSection
(
const FString& Name |
|
![]() |
FConfigSection * | FindOrAddSection
(
const FString& Name |
Looks for a section by name, and creates an empty one if it can't be found |
![]() ![]() |
const FConfigSection * | FindSection
(
const FString& SectionName |
|
![]() ![]() |
FString | GenerateExportedPropertyLine
(
const FString& PropertyName, |
Generate a correctly escaped line to add to the config file for the given property |
![]() ![]() |
int32 | ||
![]() ![]() |
bool | ||
![]() ![]() |
bool | ||
![]() ![]() |
UE::ConfigAccessTracking::FFile * | ||
![]() ![]() |
bool | ||
![]() ![]() |
bool | ||
![]() ![]() |
bool | ||
![]() ![]() |
int32 | ||
![]() ![]() |
int32 | ||
![]() ![]() |
bool | ||
![]() ![]() |
bool | ||
![]() ![]() |
bool | ||
![]() ![]() |
bool | ||
![]() ![]() |
bool | ||
![]() ![]() |
bool | ||
![]() ![]() |
bool | ||
![]() ![]() |
bool | ||
![]() ![]() |
int32 | ||
![]() ![]() |
bool | Generic versions for use with templates | |
![]() ![]() |
bool | IsEmpty () |
|
![]() ![]() |
int32 | Num () |
|
![]() ![]() |
bool | OverrideFileFromCommandline
(
FString& Filename |
Checks the command line for any overridden config file settings |
![]() ![]() |
void | OverrideFromCommandline
(
FConfigCommandStream* File, |
Looks for any overrides on the commandline for this file |
![]() ![]() |
void | OverrideFromCommandline
(
FConfigFile* File, |
Checks the command line for any overridden config settings |
![]() |
void | ProcessInputFileContents
(
FStringView Contents, |
Process the contents of an .ini file that has been read into an FString |
![]() |
void | Check the source hierarchy which was loaded without any user changes from the Config/Saved dir. | |
![]() |
void | ||
![]() |
int32 | Remove
(
KeyConstPointerType InKey |
|
![]() |
bool | RemoveFromSection
(
const TCHAR* Section, |
Removes every entry in the Section that has the Key/Value pair This is equivalent to the - operator in .ini files (although it will remove all instances of the pair, not just a single one) |
![]() |
bool | RemoveKeyFromSection
(
const TCHAR* Section, |
Removes every entry in the Section that has Key, no matter what the Value is This is equivalent to the ! operator in .ini files |
![]() |
void | Reset () |
|
![]() |
bool | ResetKeyInSection
(
const TCHAR* Section, |
Similar to RemvoeKeyFromSection, but if this File's changes are being tracked, then we remove all changes to the the key that have been tracked. |
![]() |
void | ||
![]() |
void | ||
![]() |
void | ||
![]() |
void | ||
![]() |
void | ||
![]() |
void | ||
![]() |
void | ||
![]() ![]() |
bool | ShouldExportQuotedString
(
const FString& PropertyValue |
Checks if the PropertyValue should be exported in quotes when writing the ini to disk. |
![]() |
void | ||
![]() |
void | UpdateSections
(
const TCHAR* DiskFilename, |
Saves only the sections in this FConfigFile into the given file. |
![]() |
bool | UpdateSinglePropertyInSection
(
const TCHAR* DiskFilename, |
Update a single property in the config file, for the section that is specified. |
![]() |
bool | Write this ConfigFile to the given Filename, constructed the text from the config sections in *this, prepended by the optional PrefixText | |
![]() ![]() |
bool | Whether to write a temp file then move it to it's destination when saving. | |
![]() |
void | WriteToString
(
FString& InOutText, |
Write this ConfigFile to the given string, constructed the text from the config sections in *this, prepended by the optional PrefixText |
Operators
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
bool | operator!=
(
const FConfigFile& Other |
|
![]() |
FConfigFile & | operator=
(
FConfigFile&& Other |
|
![]() |
FConfigFile & | operator=
(
const FConfigFile& Other |
|
![]() ![]() |
bool | operator==
(
const FConfigFile& Other |
Typedefs
Name | Description |
---|---|
SectionType |
Constants
Name | Description |
---|---|
ConfigFileMapLock |