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

INIReader class. More...

#include <ini.h>

Public Types

using T_LineData = std::vector<std::string>
 Vector of strings to store INI file structure into.
 
using T_LineDataPtr = std::shared_ptr<T_LineData>
 Shared pointer to T_LineData.
 

Public Member Functions

 INIReader (std::string const &filename, bool keepLineData=false)
 Constructor.
 
 ~INIReader ()
 Destructor.
 
bool operator>> (INIStructure &data)
 Reads INI file contents into "data" INI file structure.
 
T_LineDataPtr getLines ()
 Returns contents of INI file.
 

Public Attributes

bool isBOM = false
 BOM flag, indicetes, that indicates, that it is UTF-8.
 

Detailed Description

INIReader class.

Constructor & Destructor Documentation

◆ INIReader()

mINI::INIReader::INIReader ( std::string const & filename,
bool keepLineData = false )
inline

Constructor.

Parameters
[in]filenameFull INI file name with path
[in]keepLineDataKeep pointer to LineData to lineData

Member Function Documentation

◆ getLines()

T_LineDataPtr mINI::INIReader::getLines ( )
inline

Returns contents of INI file.

Returns
Pointer to the vector of INI strings

◆ operator>>()

bool mINI::INIReader::operator>> ( INIStructure & data)
inline

Reads INI file contents into "data" INI file structure.

Parameters
dataINI file structure to read data into
Returns
true if succeed, false otherwise

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