Mailer
Loading...
Searching...
No Matches
mINI::INIFile Class Reference

INIFile class. More...

#include <ini.h>

Public Member Functions

 INIFile (std::string const &filename)
 Constructor.
 
 ~INIFile ()
 Destructor.
 
bool read (INIStructure &data) const
 Clears "data" contents and reads INI file.
 
bool generate (INIStructure const &data, bool pretty=false) const
 Generate INI structure into data.
 
bool write (INIStructure &data, bool pretty=false) const
 Writes INI structure to INI file.
 

Detailed Description

INIFile class.

Constructor & Destructor Documentation

◆ INIFile()

mINI::INIFile::INIFile ( std::string const & filename)
inline

Constructor.

Parameters
filenameINI full file name with path

Member Function Documentation

◆ generate()

bool mINI::INIFile::generate ( INIStructure const & data,
bool pretty = false ) const
inline

Generate INI structure into data.

Parameters
[out]dataGenerated INI structure
prettyUse beautifier or not
Returns
true if succeed, false otherwise

◆ read()

bool mINI::INIFile::read ( INIStructure & data) const
inline

Clears "data" contents and reads INI file.

Parameters
[out]dataINI structure to read INI file into
Returns
true if succeed, false otherwise

◆ write()

bool mINI::INIFile::write ( INIStructure & data,
bool pretty = false ) const
inline

Writes INI structure to INI file.

Parameters
[in]dataINI file data structure to write
[in]prettySome beautifier
Returns
true if succeed, false otherwise

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