NOTE: This project has been deprecated.
A simple serialization/parser ini C library with a C++17 interface.
std::string
,int
andfloat
serialization and parsing- simple ini manipulation (can only add keys)
- small and fast implementation
- no third-party library required
#include <libini/ini.hpp>
int main() {
libini::ini ini;
ini.set("", "GlobalKey", 123);
ini.set("Person.Attributes", "Name", "John");
ini.serialize("my_file.ini")
}
#include <libini/ini.hpp>
int main() {
libini::ini ini;
ini.parse("my_file.ini")
int global_key = ini.get<int>("", "GlobalKey");
std::string name = ini.get<std::string>("Person.Attributes", "Name");
// try getting a non-existing key
auto some_key = ini.get_opt<int>("MySection", "SomeKey");
}