Config Forge 1.0.0
Loading...
Searching...
No Matches
FConfigForgeIniFile Class Reference

#include <ConfigForgeIniFile.h>

Public Member Functions

 FConfigForgeIniFile (const FString &InFilePath, bool bAutoLoad=true)
 
bool Load ()
 
bool Save ()
 
bool IsLoaded () const
 
const FString & GetFilePath () const
 
void SetString (const FString &Section, const FString &Key, const FString &Value)
 
void SetInt32 (const FString &Section, const FString &Key, int32 Value)
 
void SetInt64 (const FString &Section, const FString &Key, int64 Value)
 
void SetFloat (const FString &Section, const FString &Key, float Value)
 
void SetDouble (const FString &Section, const FString &Key, double Value)
 
void SetBool (const FString &Section, const FString &Key, bool Value)
 
void SetArray (const FString &Section, const FString &Key, const TArray< FString > &Values)
 
bool GetString (const FString &Section, const FString &Key, FString &OutValue) const
 
bool GetInt32 (const FString &Section, const FString &Key, int32 &OutValue)
 
bool GetInt64 (const FString &Section, const FString &Key, int64 &OutValue) const
 
bool GetFloat (const FString &Section, const FString &Key, float &OutValue) const
 
bool GetDouble (const FString &Section, const FString &Key, double &OutValue) const
 
bool GetBool (const FString &Section, const FString &Key, bool &OutValue) const
 
bool GetArray (const FString &Section, const FString &Key, TArray< FString > &OutValues) const
 
bool HasSection (const FString &Section) const
 
bool HasKey (const FString &Section, const FString &Key) const
 
void GetAllSections (TArray< FString > &OutSections) const
 
void GetKeysInSection (const FString &Section, TArray< FString > &OutKeys) const
 
void Clear ()
 

Protected Member Functions

void MarkDirty ()
 
void EnsureLoaded ()
 

Detailed Description

A wrapper class for handling INI file operations with batched I/O. Loads the file once, allows multiple operations, then saves once.


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