|
CARLA
|
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, const FString &Hint) |
| bool | HasSection (const FString &Section) const |
| void | AddSectionIfMissing (const FString &Section) |
| bool | Write (const FString &Filename) |
| Write contents to disk. | |
| const FConfigFile & | GetFConfigFile () const |
| Retrieve Unreal's FConfigFile. | |
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 | |
| Private Member Functions inherited from NonCopyable | |
| 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 |
Definition at line 41 of file IniFile.h.
References ConfigFile.
|
inline |
Definition at line 67 of file IniFile.h.
References ConfigFile, and HasSection().
|
inline |
Definition at line 52 of file IniFile.h.
References ConfigFile.
|
inline |
Definition at line 109 of file IniFile.h.
References ConfigFile.
Referenced by LoadSettingsFromConfig().
|
inline |
|
inline |
Definition at line 117 of file IniFile.h.
References ConfigFile.
|
inline |
Definition at line 93 of file IniFile.h.
References ConfigFile, and SafeCastTo().
Referenced by LoadSettingsFromConfig().
|
inline |
Definition at line 125 of file IniFile.h.
References ConfigFile.
|
inline |
Definition at line 101 of file IniFile.h.
References ConfigFile.
Referenced by LoadSettingsFromConfig().
|
inline |
Definition at line 62 of file IniFile.h.
References ConfigFile.
Referenced by AddSectionIfMissing().
|
inline |
Definition at line 57 of file IniFile.h.
References ConfigFile.
Referenced by UCarlaSettings::LoadSettingsFromString().
|
inlinestaticprivate |
|
inline |
Definition at line 154 of file IniFile.h.
References SetString().
|
inline |
Definition at line 159 of file IniFile.h.
References SetString().
|
inline |
Definition at line 139 of file IniFile.h.
References ConfigFile.
|
inline |
Definition at line 164 of file IniFile.h.
References SetString().
|
inline |
Definition at line 149 of file IniFile.h.
References SetString().
|
inline |
Definition at line 144 of file IniFile.h.
References ConfigFile.
Referenced by SetBool(), SetFloat(), SetLinearColor(), and SetString().
|
inline |
|
private |
Definition at line 173 of file IniFile.h.
Referenced by AddSectionIfMissing(), Combine(), FIniFile(), GetBool(), GetFConfigFile(), GetFloat(), GetInt(), GetLinearColor(), GetString(), HasSection(), ProcessInputFileContents(), SetInt(), SetString(), and Write().