Skip to content

agafon0ff/IniSettings

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IniSettings

Simple class to save and load ini-formatted file

Load values:

IniSettings settings("config.ini");
settings.beginGroup("HELLO");
std::string  val1 = settings.value("val1");
int          val2 = settings.value("val2", 0);
double       val3 = settings.value("val3", 0.);
settings.endGroup();

Save values:

IniSettings settings("config.ini");
settings.beginGroup("HELLO");
settings.setValue("val1", "hello");
settings.setValue("val2", 123);
settings.setValue("val3", 1.23);
settings.endGroup();

About

Simple class to save and load ini-formatted file

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published