preCICE v3.1.2
|
contains the XML configuration parser. More...
Classes | |
class | ConfigParser |
struct | ConfigurationContext |
Tightly coupled to the parameters of Participant() More... | |
struct | NoPListener |
No operation listener for tests. More... | |
class | XMLAttribute |
class | XMLTag |
Represents an XML tag to be configured automatically. More... | |
contains the XML configuration parser.
void precice::xml::configure | ( | XMLTag & | tag, |
const precice::xml::ConfigurationContext & | context, | ||
std::string_view | configurationFilename ) |
Configures the given configuration from file configurationFilename.
Definition at line 395 of file XMLTag.cpp.
std::string precice::xml::decodeXML | ( | std::string | xml | ) |
Decodes escape sequences of a given xml.
Definition at line 21 of file ConfigParser.cpp.
XMLTag precice::xml::getRootTag | ( | ) |
Returns an XMLTag::Listener that does nothing on callbacks.
This is useful for tests, when the root tag to be specified in
Returns an empty root tag with name "configuration".
A static NoPListener is added, and the occurrence is set to OCCUR_ONCE.
Definition at line 389 of file XMLTag.cpp.
|
inline |
creates an XMLAttribute given a name and a default value.
[in] | name | the name of the attribute |
[in] | defaultValue | the default value of the attribute |
Definition at line 219 of file XMLAttribute.hpp.
XMLAttribute< T > precice::xml::makeXMLAttribute | ( | std::string | name, |
T | defaultValue ) |
creates an XMLAttribute given a name and a default value.
[in] | name | the name of the attribute |
[in] | defaultValue | the default value of the attribute |
Definition at line 231 of file XMLAttribute.hpp.
Definition at line 82 of file ConfigParser.cpp.
void precice::xml::OnEndElementNs | ( | void * | ctx, |
const xmlChar * | localname, | ||
const xmlChar * | prefix, | ||
const xmlChar * | URI ) |
Definition at line 72 of file ConfigParser.cpp.
|
inline |
void precice::xml::readValueSpecific | ( | const std::string & | rawValue, |
double & | value ) |
Definition at line 30 of file ValueParser.cpp.
void precice::xml::readValueSpecific | ( | const std::string & | rawValue, |
Eigen::VectorXd & | value ) |
Definition at line 55 of file ValueParser.cpp.
void precice::xml::readValueSpecific | ( | const std::string & | rawValue, |
int & | value ) |
Definition at line 42 of file ValueParser.cpp.
|
inline |
Definition at line 14 of file ValueParser.hpp.
void precice::xml::toDocumentation | ( | std::ostream & | out, |
const XMLTag & | tag ) |
Prints the XML reference for the given tag.
Definition at line 468 of file Printer.cpp.
void precice::xml::toDTD | ( | std::ostream & | out, |
const XMLTag & | tag ) |
Prints the DTD reference for the given tag.
Definition at line 463 of file Printer.cpp.
void precice::xml::toMarkdown | ( | std::ostream & | out, |
const XMLTag & | tag ) |
Prints the Markdown reference for the given tag.
Definition at line 458 of file Printer.cpp.