|
| template<typename DataType , typename ParserFunc > |
| static void | getFieldFromXml (const XmlElementPtr &element, const std::string &nodeName, DataType &dataField, ParserFunc parserFunc, bool expected=false) |
| | Helper function to check if a child exists and populate it if so.
|
| |
| static XmlElementPtr | getFirstChildElement (const XmlElementPtr &element, const std::string &childElementName) |
| | Helper function to throw when child element does not exist.
|
| |
|
static std::optional< std::string > | getOptionalChildText (const XmlElementPtr &element, const std::string &childElementName) |
| | Helper function to return std::nullopt when child element does not exist.
|
| |
|
template<typename T > |
| static std::optional< T > | getOptionalChildTextAs (const XmlElementPtr &element, const std::string &childElementName, T defaultValue={}) |
| | Helper function to return std::nullopt when child element does not exist.
|
| |
Factory class for creating Header objects from XML.