The IniFile class allows parsing and writing INI files.
More...
#include <inifile.h>
|
| | IniFile () |
| | Constructs an empty ini file.
|
| ScopeList & | data () |
| | Returns the data of the file.
|
| const ScopeList & | data () const |
| | Returns the data of the file.
|
| void | parse (std::istream &inputStream) |
| | Parses all data from the specified inputStream.
|
| void | make (std::ostream &outputStream) |
| | Write the current data to the specified outputStream.
|
The IniFile class allows parsing and writing INI files.
- See also
- See AdvancedIniFile for a more advanced version which preserves more particularities of the original file.
Definition at line 16 of file inifile.h.
◆ Scope
◆ ScopeData
◆ ScopeList
◆ ScopeName
◆ IniFile()
| CppUtilities::IniFile::IniFile |
( |
| ) |
|
|
inline |
Constructs an empty ini file.
Definition at line 36 of file inifile.h.
◆ data() [1/2]
Returns the data of the file.
Definition at line 46 of file inifile.h.
◆ data() [2/2]
Returns the data of the file.
Definition at line 55 of file inifile.h.
◆ make()
| void CppUtilities::IniFile::make |
( |
std::ostream & | outputStream | ) |
|
Write the current data to the specified outputStream.
- Exceptions
-
| Throws | an std::ios_base::failure when an IO error occurs. |
Definition at line 157 of file inifile.cpp.
◆ parse()
| void CppUtilities::IniFile::parse |
( |
std::istream & | inputStream | ) |
|
Parses all data from the specified inputStream.
- Exceptions
-
| Throws | an std::ios_base::failure when an IO error (other than end-of-file) occurs. |
Definition at line 38 of file inifile.cpp.
The documentation for this class was generated from the following files: