MoCSI API Reference
Loading...
Searching...
No Matches
Public Member Functions | List of all members
IniParser Class Reference

This class parses ini files. Currently supported are only the following data types: string/char, int, double, bool. More...

#include <IniParser.h>

Collaboration diagram for IniParser:
Collaboration graph

Public Member Functions

 IniParser (const std::string &filename)
 Constructor for the IniParser class. Parses an ini file into an std::unordered_map.
 
const std::unordered_map< std::string, std::any > & getIniContents ()
 

Detailed Description

This class parses ini files. Currently supported are only the following data types: string/char, int, double, bool.

Constructor & Destructor Documentation

◆ IniParser()

IniParser::IniParser ( const std::string &  filename)

Constructor for the IniParser class. Parses an ini file into an std::unordered_map.

Parameters
filenameThe file path.

Member Function Documentation

◆ getIniContents()

const std::unordered_map< std::string, std::any > & IniParser::getIniContents ( )
inline

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