libthinkpad  1.3
https://github.com/libthinkpad
Public Member Functions | List of all members
ThinkPad::Configuration Class Reference

class used for config file management More...

#include <libthinkpad.h>

Public Member Functions

vector< struct config_section_t * > * parse (string path)
 parse parse a config file from the disk into the class More...
 
void writeConfig (vector< struct config_section_t * > *sections, string path)
 writeConfig write a list of sections to the disk More...
 

Detailed Description

class used for config file management

This class is used to manage, read and write config files

Member Function Documentation

vector< struct config_section_t * > * ThinkPad::Configuration::parse ( string  path)

parse parse a config file from the disk into the class

Parameters
paththe path to the file to parse
Returns
the point to the section list
void ThinkPad::Configuration::writeConfig ( vector< struct config_section_t * > *  sections,
string  path 
)

writeConfig write a list of sections to the disk

Parameters
sectionsthe list of sections to write
paththe path to write

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