-
Notifications
You must be signed in to change notification settings - Fork 0
/
ini_parser.h
46 lines (36 loc) · 1.02 KB
/
ini_parser.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*
-- ----------------------------------------------------------------------
-- Project: DLL creation
--
-- Author: Hamza Qureshi
--
-- File name: INI_Parser.h
--
-- Rev.: 1.0
-- Creation date: DEC 2023
--
-- ---------------------------------------------------------------------
Purpose of this module: MAIN MODULE
----------Main body--------------
Comments:
WARININGS
---------------------------------------------------------------------------
*/
// RDU_1_0Dlg.cpp : implementation file
//
//
#include <iostream>
#include <fstream>
#include <sstream>
#include <unordered_map>
#include "main.h"
#include "pch.h"
class INIParser
{
public:
bool load(const std::string& filename);
std::string getValue(const std::string& section, const std::string& key) const;
private:
void parseLine(const std::string& line, std::string& currentSection);
std::unordered_map<std::string, std::unordered_map<std::string, std::string>> iniData;
};