|
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 70 of file yaml_parser.h.
| CYamlParser::CYamlParser | ( | ) |
Definition at line 169 of file yaml_parser.cpp.
| CYamlParser::~CYamlParser | ( | ) |
Definition at line 173 of file yaml_parser.cpp.
| bool CYamlParser::bHasError | ( | ) | const |
Definition at line 214 of file yaml_parser.cpp.
|
private |
Definition at line 255 of file yaml_parser.cpp.
Referenced by ParseSection().
|
private |
Definition at line 261 of file yaml_parser.cpp.
Referenced by ParseSection().
| bool CYamlParser::bParseFile | ( | string const & | strFileName | ) |
Definition at line 177 of file yaml_parser.cpp.
Referenced by CSimulation::bConfigureFromYamlFile().
|
private |
Definition at line 266 of file yaml_parser.cpp.
Referenced by ParseSection().
| string CYamlParser::GetError | ( | ) | const |
Definition at line 209 of file yaml_parser.cpp.
Referenced by CSimulation::bConfigureFromYamlFile().
| CYamlNode CYamlParser::GetRoot | ( | ) | const |
Definition at line 204 of file yaml_parser.cpp.
Referenced by CSimulation::bConfigureFromYamlFile().
|
private |
Definition at line 219 of file yaml_parser.cpp.
Referenced by ParseSection().
Definition at line 316 of file yaml_parser.cpp.
Referenced by bParseFile(), and ParseSection().
Definition at line 298 of file yaml_parser.cpp.
Referenced by bParseLine().
Definition at line 250 of file yaml_parser.cpp.
Referenced by bIsEmpty(), and bParseLine().
Definition at line 234 of file yaml_parser.cpp.
Referenced by bIsComment(), bParseLine(), and strTrim().
Definition at line 242 of file yaml_parser.cpp.
Referenced by strTrim().
|
private |
Definition at line 75 of file yaml_parser.h.
Referenced by bParseFile(), CYamlParser(), and ParseSection().
|
private |
Definition at line 73 of file yaml_parser.h.
Referenced by bParseFile(), and GetRoot().
|
private |
Definition at line 76 of file yaml_parser.h.
Referenced by bHasError(), bParseFile(), and GetError().
|
private |
Definition at line 74 of file yaml_parser.h.
Referenced by bParseFile().