This class represents a .ini/.conf/.desktop file parser based on the Windows INI standard. More...
#include <libthinkpad.h>
| Public Member Functions | |
| vector< IniSection * > * | readIni (string path) | 
| parse parse a config file from the disk into the class  More... | |
| bool | writeIni (string path) | 
| writeConfig write a list of sections to the disk  More... | |
| vector< IniSection * > | getSections (const char *section) | 
| IniSection * | getSection (const char *section) | 
| void | addSection (IniSection *section) | 
This class represents a .ini/.conf/.desktop file parser based on the Windows INI standard.
WARNING: COMMENTS ARE NOT SUPPORTED!
| void ThinkPad::Utilities::Ini::Ini::addSection | ( | IniSection * | section | ) | 
Add a section to the config file
| section | the section to add | 
| Utilities::Ini::IniSection * ThinkPad::Utilities::Ini::Ini::getSection | ( | const char * | section | ) | 
Get a single section from the file with the name
| section | the section to get | 
| vector< Utilities::Ini::IniSection * > ThinkPad::Utilities::Ini::Ini::getSections | ( | const char * | section | ) | 
Get a list of sections from the file with the same name
| section | the name of the sections | 
| vector< Utilities::Ini::IniSection * > * ThinkPad::Utilities::Ini::Ini::readIni | ( | string | path | ) | 
parse parse a config file from the disk into the class
| path | the path to the file to parse | 
| bool ThinkPad::Utilities::Ini::Ini::writeIni | ( | string | path | ) | 
writeConfig write a list of sections to the disk
| sections | the list of sections to write | 
| path | the path to write | 
 1.8.11
 1.8.11