Cantera
2.5.1
|
Base class defining common data possessed by both AnyMap and AnyValue objects. More...
#include <AnyMap.h>
Public Member Functions | |
void | setLoc (int line, int column) |
For values which are derived from an input file, set the line and column of this value in that file. More... | |
const AnyValue & | getMetadata (const std::string &key) const |
Get a value from the metadata applicable to the AnyMap tree containing this node. More... | |
Protected Attributes | |
int | m_line |
Line where this node occurs in the input file. More... | |
int | m_column |
Column where this node occurs in the input file. More... | |
shared_ptr< AnyMap > | m_metadata |
Metadata relevant to an entire AnyMap tree, such as information about. More... | |
Friends | |
class | InputFileError |
void setLoc | ( | int | line, |
int | column | ||
) |
For values which are derived from an input file, set the line and column of this value in that file.
Used for providing context for some error messages.
Definition at line 283 of file AnyMap.cpp.
References AnyBase::m_column, and AnyBase::m_line.
Referenced by AnyMap::fromYamlFile(), AnyMap::fromYamlString(), and AnyMap::operator[]().
const AnyValue & getMetadata | ( | const std::string & | key | ) | const |
Get a value from the metadata applicable to the AnyMap tree containing this node.
Definition at line 289 of file AnyMap.cpp.
References AnyBase::m_metadata.
|
protected |
Line where this node occurs in the input file.
Definition at line 46 of file AnyMap.h.
Referenced by AnyMap::operator[](), and AnyBase::setLoc().
|
protected |
Column where this node occurs in the input file.
Definition at line 49 of file AnyMap.h.
Referenced by AnyMap::operator[](), and AnyBase::setLoc().
|
protected |
Metadata relevant to an entire AnyMap tree, such as information about.
Definition at line 53 of file AnyMap.h.
Referenced by AnyBase::getMetadata(), AnyMap::operator[](), AnyValue::propagateMetadata(), AnyMap::propagateMetadata(), and AnyMap::setMetadata().