CoastalME (Coastal Modelling Environment)
Simulates the long-term behaviour of complex coastlines
|
Simple YAML parser class. More...
#include <yaml_parser.h>
Public Member Functions | |
CYamlParser () | |
~CYamlParser () | |
bool | bParseFile (string const &strFileName) |
CYamlNode | GetRoot () const |
string | GetError () const |
bool | bHasError () const |
Private Member Functions | |
int | nGetIndentLevel (string const &strLine) const |
string | strTrimLeft (string const &strLine) const |
string | strTrimRight (string const &strLine) const |
string | strTrim (string const &strLine) const |
bool | bIsComment (string const &strLine) const |
bool | bIsEmpty (string const &strLine) const |
bool | bParseLine (string const &strLine, string &strKey, string &strValue, bool &bIsSequence) const |
string | strRemoveQuotes (string const &strValue) const |
CYamlNode | ParseSection (ifstream &fileStream, int nBaseIndent) |
Private Attributes | |
CYamlNode | m_RootNode |
string | m_strFileName |
int | m_nCurrentLine |
string | m_strError |
Simple YAML parser class.
Definition at line 69 of file yaml_parser.h.
CYamlParser::CYamlParser | ( | ) |
Definition at line 155 of file yaml_parser.cpp.
CYamlParser::~CYamlParser | ( | ) |
Definition at line 159 of file yaml_parser.cpp.
bool CYamlParser::bHasError | ( | ) | const |
Definition at line 200 of file yaml_parser.cpp.
|
private |
Definition at line 241 of file yaml_parser.cpp.
Referenced by ParseSection().
|
private |
Definition at line 247 of file yaml_parser.cpp.
Referenced by ParseSection().
bool CYamlParser::bParseFile | ( | string const & | strFileName | ) |
Definition at line 163 of file yaml_parser.cpp.
Referenced by CSimulation::bConfigureFromYamlFile().
|
private |
Definition at line 252 of file yaml_parser.cpp.
Referenced by ParseSection().
string CYamlParser::GetError | ( | ) | const |
Definition at line 195 of file yaml_parser.cpp.
Referenced by CSimulation::bConfigureFromYamlFile().
CYamlNode CYamlParser::GetRoot | ( | ) | const |
Definition at line 190 of file yaml_parser.cpp.
Referenced by CSimulation::bConfigureFromYamlFile().
|
private |
Definition at line 205 of file yaml_parser.cpp.
Referenced by ParseSection().
Definition at line 302 of file yaml_parser.cpp.
Referenced by bParseFile(), and ParseSection().
Definition at line 284 of file yaml_parser.cpp.
Referenced by bParseLine().
Definition at line 236 of file yaml_parser.cpp.
Referenced by bIsEmpty(), and bParseLine().
Definition at line 220 of file yaml_parser.cpp.
Referenced by bIsComment(), bParseLine(), and strTrim().
Definition at line 228 of file yaml_parser.cpp.
Referenced by strTrim().
|
private |
Definition at line 74 of file yaml_parser.h.
Referenced by bParseFile(), CYamlParser(), and ParseSection().
|
private |
Definition at line 72 of file yaml_parser.h.
Referenced by bParseFile(), and GetRoot().
|
private |
Definition at line 75 of file yaml_parser.h.
Referenced by bHasError(), bParseFile(), and GetError().
|
private |
Definition at line 73 of file yaml_parser.h.
Referenced by bParseFile().