Lens AI Profiler Cpp
Static Public Member Functions | List of all members
IniParser Class Reference

Class for parsing INI files and extracting key-value pairs. More...

#include <iniparser.h>

Static Public Member Functions

static std::map< std::string, std::vector< std::string > > parseIniFile (const std::string &filename, const std::string &section, const std::string &key)
 Parses the specified INI file and returns key-value pairs for the given section and subsection. More...
 

Detailed Description

Class for parsing INI files and extracting key-value pairs.

Member Function Documentation

◆ parseIniFile()

std::map< std::string, std::vector< std::string > > IniParser::parseIniFile ( const std::string &  filename,
const std::string &  section,
const std::string &  key 
)
static

Parses the specified INI file and returns key-value pairs for the given section and subsection.

Parameters
filenameThe path to the INI file.
sectionThe name of the section in the INI file.
subsectionThe name of the subsection in the INI file.
Returns
A map containing the key-value pairs.

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