Lens AI Profiler Cpp
iniparser.h
1 #ifndef INIPARSER_H
2 #define INIPARSER_H
3 
4 #include <iostream>
5 #include <fstream>
6 #include <string>
7 #include <map>
8 #include <vector>
9 
13 class IniParser {
14 public:
23  static std::map<std::string, std::vector<std::string>> parseIniFile(const std::string& filename, const std::string& section, const std::string& key);
24 };
25 
26 #endif // INIPARSER_H
Class for parsing INI files and extracting key-value pairs.
Definition: iniparser.h:13
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.
Definition: iniparser.cpp:11