Présentation GNU GPL 3.0


SiniP (Simple ini Parser) est une bibliothèque qui permet de facilement manipuler des fichiers ini.
Elle est réalisée en C++ et est fournie sous licence GNU GPL 3.0.


Lire un fichier ini


SiniP test("test.ini");

bool tmp1 = test.GetValueBool("general", "fullscreen", true);
int tmp2 = test.GetValueInt("mouse", "sensibility", 0);
float tmp3 = test.GetValueFloat("general", "fov", 60);
double tmp4 = test.GetValueDouble("music", "music", 50);
std::string tmp5 = test.GetValueString("general", "resolution", "");


Modifier un fichier ini


SiniP test("test.ini");
test.SetValueFloat("general", "atchoum", 3.0f);
test.SetValueBool("general", "awesome", true);
test.SetValueInt("advanced", "volume", 7);
test.SetValueString("more_advanced", "path", "absolute");
test.Save();
test.SaveToFile("duplicate.ini");



Partenaires:
Daidalos-Game
Battle Jump
Navigation:
Liens
Plan du Site
Me contacter