nsnake
Classic snake game for the terminal
|
Loads, reads and parses the contents of an INI file (or string). More...
#include <INI.hpp>
Public Member Functions | |
Parser () | |
Creates a blank new INI file. More... | |
Parser (std::string filename) | |
Load and parse #filename. | |
Parser (std::istream &stream) | |
Parse a stream. More... | |
void | dump (std::ostream &stream) |
Outputs the contents of the INI file to #stream. More... | |
Level & | top () |
Returns the top level of this INI file. More... | |
const std::string & | operator[] (const std::string &name) |
Shortcut to access a key within the top level. | |
Level & | operator() (const std::string &name) |
Shortcut to access a Level within the top level. | |
void | create () |
Creates a blank INI registry. More... | |
void | saveAs (std::string filename) |
Save all the internal INI contents on a file with #filename. | |
Loads, reads and parses the contents of an INI file (or string).
INI::Parser::Parser | ( | ) |
INI::Parser::Parser | ( | std::istream & | stream | ) |
void INI::Parser::create | ( | ) |
Creates a blank INI registry.
It resets itself, allowing you to create brand new INI files from scratch.
void INI::Parser::dump | ( | std::ostream & | stream | ) |
INI::Level & INI::Parser::top | ( | ) |