Wrapper around Unreal's INI file. More...
#include <IniFile.h>
Public Member Functions | |
Constructor | |
FIniFile ()=default | |
FIniFile (const FString &FileName) | |
Other functions | |
bool | Combine (const FString &FileName) |
void | ProcessInputFileContents (const FString &INIFileContents) |
bool | HasSection (const FString &Section) const |
void | AddSectionIfMissing (const FString &Section) |
bool | Write (const FString &Filename) |
Write contents to disk. More... | |
const FConfigFile & | GetFConfigFile () const |
Retrieve Unreal's FConfigFile. More... | |
Get functions | |
template<typename T > | |
void | GetInt (const TCHAR *Section, const TCHAR *Key, T &Target) const |
void | GetString (const TCHAR *Section, const TCHAR *Key, FString &Target) const |
void | GetBool (const TCHAR *Section, const TCHAR *Key, bool &Target) const |
void | GetFloat (const TCHAR *Section, const TCHAR *Key, float &Target, const float Factor=1.0f) const |
void | GetLinearColor (const TCHAR *Section, const TCHAR *Key, FLinearColor &Target) const |
Set functions | |
void | SetInt (const TCHAR *Section, const TCHAR *Key, const int64 Value) |
void | SetString (const TCHAR *Section, const TCHAR *Key, const TCHAR *Value) |
void | SetString (const TCHAR *Section, const TCHAR *Key, const FString &Value) |
void | SetBool (const TCHAR *Section, const TCHAR *Key, const bool Value) |
void | SetFloat (const TCHAR *Section, const TCHAR *Key, const float Value) |
void | SetLinearColor (const TCHAR *Section, const TCHAR *Key, const FLinearColor &Value) |
Static Private Member Functions | |
template<typename TARGET , typename SOURCE > | |
static void | SafeCastTo (SOURCE source, TARGET &target) |
Private Attributes | |
FConfigFile | ConfigFile |
Additional Inherited Members | |
![]() | |
NonCopyable ()=default | |
NonCopyable (const NonCopyable &)=delete | |
void | operator= (const NonCopyable &)=delete |
Wrapper around Unreal's INI file.
In get functions, Target value is only set if it was present in the INI file, otherwise it keeps its value.
|
default |
|
inlineexplicit |
|
inline |
|
inline |
Definition at line 107 of file IniFile.h.
Referenced by LoadSettingsFromConfig().
|
inline |
|
inline |
|
inline |
Definition at line 91 of file IniFile.h.
Referenced by LoadSettingsFromConfig().
|
inline |
|
inline |
Definition at line 99 of file IniFile.h.
Referenced by LoadSettingsFromConfig().
|
inline |
|
inline |
Definition at line 55 of file IniFile.h.
Referenced by UCarlaSettings::LoadSettingsFromString().
|
inlinestaticprivate |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |