Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_ConfigHelper Class Reference

Static Protected Member Functions

static BaseContainer GetChildBaseContainerByPath (notnull BaseContainer container, array< string > paths)
static BaseContainer GetChildFromList (notnull BaseContainerList containerList, string childName)
static string SplitConfigPath (string input, out array< string > output, bool removeLastPart=false)
static string GetGUID (ResourceName resourceName, bool removeBrackets=false)

Detailed Description

Definition at line 1 of file SCR_ConfigHelper.c.

Member Function Documentation

◆ GetChildBaseContainerByPath()

BaseContainer SCR_ConfigHelper::GetChildBaseContainerByPath ( notnull BaseContainer container,
array< string > paths )
inlinestaticprotected

returns the found sub-container or null if not found

Parameters
[in]containerif null, returns null
[in]pathscase-insensitive, items will be trimmed \ if empty, returns the provided container
Returns
found child BaseContainer, or null if path is incorrect

Definition at line 52 of file SCR_ConfigHelper.c.

◆ GetChildFromList()

BaseContainer SCR_ConfigHelper::GetChildFromList ( notnull BaseContainerList containerList,
string childName )
inlinestaticprotected

Get BaseContainer from BaseContainerList by its (case-insensitive) name

Parameters
[in]containerListlist of containers from which to look
[in]childNamecase-insensitive child name
Returns
BaseContainer found child or null

Definition at line 100 of file SCR_ConfigHelper.c.

◆ GetGUID()

string SCR_ConfigHelper::GetGUID ( ResourceName resourceName,
bool removeBrackets = false )
inlinestaticprotected

Extract GUID from full resource name

Parameters
[in]resourceNamefull resource path
[in]removeBracketsif true, remove brackets
Returns
resourceName's GUID

Definition at line 159 of file SCR_ConfigHelper.c.

◆ SplitConfigPath()

string SCR_ConfigHelper::SplitConfigPath ( string input,
out array< string > output,
bool removeLastPart = false )
inlinestaticprotected

split "config path" (separator: / ), trims and toLower parts and returns last part if any

Parameters
[in]inputthe input string
[out]outputthe target output array
[in]removeLastPartremoves last part if entry path is provided
Returns
last part (trimmed but not ToLower'ed), whether it has been removed or not

Definition at line 133 of file SCR_ConfigHelper.c.


The documentation for this class was generated from the following file: