FConfigCacheIni::Parse1ToNSectionOfStrings

Prases apart an ini section that contains a list of 1-to-N mappings of strings in the following format [PerMapPackages] MapName=Map1 Package=PackageA Package=PackageB MapName=Map2 Package=PackageC Package=PackageD

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Misc/ConfigCacheIni.h

Include

#include "Misc/ConfigCacheIni.h"

Source

/Engine/Source/Runtime/Core/Private/Misc/ConfigCacheIni.cpp

Syntax

virtual void Parse1ToNSectionOfStrings
(
    const TCHAR * Section,
    const TCHAR * KeyOne,
    const TCHAR * KeyN,
    TMap< FString, TArray< FString > > & OutMap,
    const FString & Filename
)

Remarks

Prases apart an ini section that contains a list of 1-to-N mappings of strings in the following format [PerMapPackages] MapName=Map1 Package=PackageA Package=PackageB MapName=Map2 Package=PackageC Package=PackageD

The function naming is weird because you can't apparently have an overridden function differnt only by template type params Parses apart an ini section that contains a list of 1-to-N mappings of strings in the following format [PerMapPackages] .MapName1=Map1 .Package1=PackageA .Package1=PackageB .MapName2=Map2 .Package2=PackageC .Package2=PackageD

NOTE: The function naming is weird because you can't apparently have an overridden function differnt only by template type params

Parameters

Parameter

Description

Section

Name of section to look in

KeyOne

Key to use for the 1 in the 1-to-N (MapName in the above example)

KeyN

Key to use for the N in the 1-to-N (Package in the above example)

OutMap

Map containing parsed results

Filename

Filename to use to find the section

Section

Name of section to look in

KeyOne

Key to use for the 1 in the 1-to-N (MapName in the above example - the number suffix gets ignored but helps to keep ordering)

KeyN

Key to use for the N in the 1-to-N (Package in the above example - the number suffix gets ignored but helps to keep ordering)

OutMap

Map containing parsed results

Filename

Filename to use to find the section

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss