Elaztek Developer Hub
Blamite Game Engine - Strings  00313.05.23.21.2038.blamite
A library containing general purpose utilities and classes for use in multiple projects.
project_info.cpp File Reference

Functions

std::string GetChildNodeValue (rapidxml::xml_node<> *parent_node, std::string child_node_name)
 Retrieves the value of a child node within an XML node. More...
 

Function Documentation

◆ GetChildNodeValue()

std::string GetChildNodeValue ( rapidxml::xml_node<> *  parent_node,
std::string  child_node_name 
)

Retrieves the value of a child node within an XML node.

Used to simplify project file parsing code.

In the event that the child node cannot be found, a warning message is logged.

Parameters
parent_node- The parent XML node.
child_node_name- The name of the child node.
Returns
The value of the child node if it was found. If the child node could not be found, an empty string is returned.