#include <ConfigCacheIni.h>
|
| | FConfigBranch () |
| |
| | FConfigBranch (const FConfigFile &ExistingFile) |
| |
| CORE_API bool | AddDynamicLayerToHierarchy (const FString &Filename, FConfigModificationTracker *ModificationTracker=nullptr, TSet< FString > *GlobalConfigFileCache=nullptr, TSet< FString > *PluginConfigFileCache=nullptr) |
| |
| CORE_API bool | AddDynamicLayersToHierarchy (const TArray< FDynamicLayerInfo > &Layers, FConfigModificationTracker *ModificationTracker=nullptr, TSet< FString > *GlobalConfigFileCache=nullptr, TSet< FString > *PluginConfigFileCache=nullptr, bool bForceFullDynamicLayerUpdate=false) |
| |
| CORE_API bool | AddDynamicLayersToHierarchy (const TArray< FString > &Filenames, FName Tag=NAME_None, DynamicLayerPriority Priority=DynamicLayerPriority::Unknown, FConfigModificationTracker *ModificationTracker=nullptr) |
| |
| CORE_API bool | AddDynamicLayerStringToHierarchy (const FString &Filename, const FString &Contents, FName Tag=NAME_None, DynamicLayerPriority Priority=DynamicLayerPriority::Unknown, FConfigModificationTracker *ModificationTracker=nullptr) |
| |
| CORE_API bool | RemoveDynamicLayerFromHierarchy (const FString &Filename, FConfigModificationTracker *ModificationTracker=nullptr) |
| |
| CORE_API bool | RemoveDynamicLayersFromHierarchy (const TArray< FString > &Filenames, FConfigModificationTracker *ModificationTracker=nullptr) |
| |
| CORE_API void | SafeUnload () |
| |
| CORE_API void | SafeReload () |
| |
| CORE_API void | ReapplyLayers () |
| |
| CORE_API bool | MergeStaticLayersUpTo (const FString &LayerNameSubstring, FConfigFile &OutFile) const |
| |
| CORE_API bool | MergeStaticLayersUpToAndIncluding (const FString &LayerNameSubstring, FConfigFile &OutFile) const |
| |
| CORE_API const FConfigCommandStream * | GetStaticLayer (const FString &LayerSubstring) const |
| |
| CORE_API bool | RemoveSection (const TCHAR *Section) |
| |
| CORE_API bool | Delete () |
| |
| CORE_API void | Flush () |
| |
| CORE_API void | Shrink () |
| |
| CORE_API void | Dump (FOutputDevice &Ar) |
| |
| CORE_API void | RunOnEachFile (TFunction< void(FConfigFile &File, const FString &Name)> Func) |
| |
| CORE_API void | RunOnEachCommandStream (TFunction< void(FConfigCommandStream &File, const FString &Name)> Func) |
| |
◆ DynamicLayerList
◆ FConfigBranch() [1/2]
| FConfigBranch::FConfigBranch |
( |
| ) |
|
◆ FConfigBranch() [2/2]
| FConfigBranch::FConfigBranch |
( |
const FConfigFile & |
ExistingFile | ) |
|
◆ AddDynamicLayersToHierarchy() [1/2]
◆ AddDynamicLayersToHierarchy() [2/2]
◆ AddDynamicLayerStringToHierarchy()
◆ AddDynamicLayerToHierarchy()
| bool FConfigBranch::AddDynamicLayerToHierarchy |
( |
const FString & |
Filename, |
|
|
FConfigModificationTracker * |
ModificationTracker = nullptr, |
|
|
TSet< FString > * |
GlobalConfigFileCache = nullptr, |
|
|
TSet< FString > * |
PluginConfigFileCache = nullptr |
|
) |
| |
Appends a new INI file to the SourceIniHierarchy and combines it with the current contents Additonally, returns the FConfigFIle object that contains just the loaded sections Can return the modified sections if the callers wants to reloadconfig on classes
◆ Delete()
| bool FConfigBranch::Delete |
( |
| ) |
|
Deletes the final saved branch file, such as "Saved/Config/Windows/Engine.ini".
- Returns
- Whether the file was successfully deleted.
◆ Dump()
◆ Flush()
| void FConfigBranch::Flush |
( |
| ) |
|
◆ GetStaticLayer()
Find the static layer that first matches the substring (or full) name of the layer filename
◆ MergeStaticLayersUpTo()
| bool FConfigBranch::MergeStaticLayersUpTo |
( |
const FString & |
LayerNameSubstring, |
|
|
FConfigFile & |
OutFile |
|
) |
| const |
Apply all static layers up, but not including, the given layer name substring (so passing "DefaultEngine" will give all values before the DefaultEngine layer) This only works if static layers are being tracked (generally in the editor and not client builds - see EBranchReplayMethod::FullReplay)
- Returns
- true if the layer was found, or false if the layer name was not found (which means all static layers will be combined and returned)
◆ MergeStaticLayersUpToAndIncluding()
| bool FConfigBranch::MergeStaticLayersUpToAndIncluding |
( |
const FString & |
LayerNameSubstring, |
|
|
FConfigFile & |
OutFile |
|
) |
| const |
Same as MergeStaticLayersUpTo, but includes the passed in layer
◆ ReapplyLayers()
| void FConfigBranch::ReapplyLayers |
( |
| ) |
|
Recalculate the usable values from all static and dynamic layers. Useful if you update a layer and need to see results in the InMemoryFile (ie what GConfig->GetXXX returns)
◆ RemoveDynamicLayerFromHierarchy()
Removes a dyanmic file from the hierarchy and recalculates the branch's IniMemoryFile Can return the modified sections if the callers wants to reloadconfig on classes
◆ RemoveDynamicLayersFromHierarchy()
◆ RemoveSection()
| bool FConfigBranch::RemoveSection |
( |
const TCHAR * |
Section | ) |
|
Removes the section completely from all layers of this branch This is destructive! It will not reload on demand (like SafeUnload does). Use this only when you know you will never need the values in the section again!
- Returns
- true if anything was removed
◆ RunOnEachCommandStream()
◆ RunOnEachFile()
Run a function on every file in the branch
◆ SafeReload()
| void FConfigBranch::SafeReload |
( |
| ) |
|
◆ SafeUnload()
| void FConfigBranch::SafeUnload |
( |
| ) |
|
Frees up the static layer memory, which can be useful if a branch is loaded from, cached, and never used again. However, if something does try to access it, it will reload in-place (can hitch your game, so be aware)
◆ Shrink()
| void FConfigBranch::Shrink |
( |
| ) |
|
◆ FConfigCacheIni
◆ operator<<
◆ bAllowedToRemove
| bool FConfigBranch::bAllowedToRemove = true |
◆ bIsHierarchical
| bool FConfigBranch::bIsHierarchical |
◆ bIsSafeUnloaded
| bool FConfigBranch::bIsSafeUnloaded |
◆ CombinedStaticLayers
◆ CommandLineOverrides
◆ DynamicLayers
◆ FinalCombinedLayers
◆ Hierarchy
◆ IniName
| FName FConfigBranch::IniName |
◆ IniPath
| FString FConfigBranch::IniPath |
◆ InMemoryFile
◆ Platform
| FName FConfigBranch::Platform |
◆ ReplayMethod
◆ RuntimeChanges
◆ SavedLayer
◆ SourceEngineConfigDir
| FString FConfigBranch::SourceEngineConfigDir |
◆ SourceProjectConfigDir
| FString FConfigBranch::SourceProjectConfigDir |
◆ StaticLayers
The documentation for this class was generated from the following files: