CoastalME (Coastal Modelling Environment)
Simulates the long-term behaviour of complex coastlines
|
Simple YAML node class to represent parsed values. More...
#include <yaml_parser.h>
Public Member Functions | |
CYamlNode () | |
~CYamlNode () | |
void | SetValue (string const &strValue) |
void | AddChild (string const &strKey, CYamlNode const &node) |
void | AddSequenceItem (CYamlNode const &node) |
string | GetValue () const |
bool | HasChild (string const &strKey) const |
CYamlNode | GetChild (string const &strKey) const |
vector< CYamlNode > | GetSequence () const |
bool | IsSequence () const |
int | GetSequenceSize () const |
int | GetIntValue (int nDefault=0) const |
double | GetDoubleValue (double dDefault=0.0) const |
bool | GetBoolValue (bool bDefault=false) const |
vector< string > | GetStringSequence () const |
Private Attributes | |
string | m_strValue |
map< string, CYamlNode > | m_mapChildren |
vector< CYamlNode > | m_vecChildren |
bool | m_bIsSequence |
Simple YAML node class to represent parsed values.
Definition at line 38 of file yaml_parser.h.
CYamlNode::CYamlNode | ( | ) |
Definition at line 41 of file yaml_parser.cpp.
Referenced by AddChild(), AddSequenceItem(), and GetChild().
CYamlNode::~CYamlNode | ( | ) |
Definition at line 45 of file yaml_parser.cpp.
Definition at line 54 of file yaml_parser.cpp.
Referenced by CYamlParser::ParseSection().
void CYamlNode::AddSequenceItem | ( | CYamlNode const & | node | ) |
Definition at line 59 of file yaml_parser.cpp.
Referenced by CYamlParser::ParseSection().
bool CYamlNode::GetBoolValue | ( | bool | bDefault = false | ) | const |
Definition at line 126 of file yaml_parser.cpp.
Referenced by CSimulation::bConfigureFromYamlFile().
Definition at line 75 of file yaml_parser.cpp.
Referenced by CSimulation::bConfigureFromYamlFile().
double CYamlNode::GetDoubleValue | ( | double | dDefault = 0.0 | ) | const |
Definition at line 112 of file yaml_parser.cpp.
Referenced by CSimulation::bConfigureFromYamlFile().
int CYamlNode::GetIntValue | ( | int | nDefault = 0 | ) | const |
Definition at line 98 of file yaml_parser.cpp.
Referenced by CSimulation::bConfigureFromYamlFile().
Definition at line 83 of file yaml_parser.cpp.
Referenced by CSimulation::bConfigureFromYamlFile().
int CYamlNode::GetSequenceSize | ( | ) | const |
Definition at line 93 of file yaml_parser.cpp.
Definition at line 142 of file yaml_parser.cpp.
Referenced by CSimulation::bConfigureFromYamlFile().
string CYamlNode::GetValue | ( | ) | const |
Definition at line 65 of file yaml_parser.cpp.
Referenced by CSimulation::bConfigureFromYamlFile().
bool CYamlNode::HasChild | ( | string const & | strKey | ) | const |
Definition at line 70 of file yaml_parser.cpp.
Referenced by CSimulation::bConfigureFromYamlFile().
bool CYamlNode::IsSequence | ( | ) | const |
Definition at line 88 of file yaml_parser.cpp.
Referenced by CSimulation::bConfigureFromYamlFile().
void CYamlNode::SetValue | ( | string const & | strValue | ) |
Definition at line 49 of file yaml_parser.cpp.
Referenced by CYamlParser::ParseSection().
|
private |
Definition at line 44 of file yaml_parser.h.
Referenced by AddSequenceItem(), CYamlNode(), and IsSequence().
Definition at line 42 of file yaml_parser.h.
Referenced by AddChild(), GetChild(), and HasChild().
|
private |
Definition at line 41 of file yaml_parser.h.
Referenced by GetBoolValue(), GetDoubleValue(), GetIntValue(), GetValue(), and SetValue().
Definition at line 43 of file yaml_parser.h.
Referenced by AddSequenceItem(), GetSequence(), GetSequenceSize(), and GetStringSequence().