C++ Utilities
5.3.0
Useful C++ classes and routines such as argument parser, IO and conversion utilities
|
The IniFile class parses and makes INI files. More...
#include <inifile.h>
Public Types | |
using | ScopeName = std::string |
using | ScopeData = std::multimap< std::string, std::string > |
using | Scope = std::pair< ScopeName, ScopeData > |
using | ScopeList = std::vector< Scope > |
Public Member Functions | |
IniFile () | |
Constructs an empty ini file. More... | |
ScopeList & | data () |
Returns the data of the file. More... | |
const ScopeList & | data () const |
void | parse (std::istream &inputStream) |
Parses all data from the specified inputStream. More... | |
void | make (std::ostream &outputStream) |
Write the current data to the specified outputStream. More... | |
The IniFile class parses and makes INI files.
using CppUtilities::IniFile::Scope = std::pair<ScopeName, ScopeData> |
using CppUtilities::IniFile::ScopeData = std::multimap<std::string, std::string> |
using CppUtilities::IniFile::ScopeList = std::vector<Scope> |
using CppUtilities::IniFile::ScopeName = std::string |
|
inline |
|
inline |
Returns the data of the file.
const ScopeList& CppUtilities::IniFile::data | ( | ) | const |
void CppUtilities::IniFile::make | ( | std::ostream & | outputStream | ) |
Write the current data to the specified outputStream.
Definition at line 154 of file inifile.cpp.
void CppUtilities::IniFile::parse | ( | std::istream & | inputStream | ) |
Parses all data from the specified inputStream.
Definition at line 21 of file inifile.cpp.