ScummVM API documentation
hpl::cConfigFile Class Reference

Public Member Functions

 cConfigFile (const tWString &asFile)
 
bool Load ()
 
bool Save ()
 
void SetString (tString asLevel, tString asName, tString asVal)
 
void SetInt (tString asLevel, tString asName, int alVal)
 
void SetFloat (tString asLevel, tString asName, float afVal)
 
void SetBool (tString asLevel, tString asName, bool abVal)
 
tString GetString (tString asLevel, tString asName, tString asDefault)
 
int GetInt (tString asLevel, tString asName, int alDefault)
 
float GetFloat (tString asLevel, tString asName, float afDefault)
 
bool GetBool (tString asLevel, tString asName, bool abDefault)
 

Member Function Documentation

◆ Load()

bool hpl::cConfigFile::Load ( )

Loads data from file

Returns
true if loading ws ok, else false

◆ Save()

bool hpl::cConfigFile::Save ( )

Saves the data to file

Returns
true if loading ws ok, else false

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