Elaztek Developer Hub
Blamite Game Engine - Strings  00420.05.12.24.2119.blamite
A library containing general purpose utilities and classes for use in multiple projects.
project_info.cpp File Reference
+ Include dependency graph for project_info.cpp:

Functions

std::string GetChildNodeValue (rapidxml::xml_node<> *parent_node, std::string child_node_name, std::string _default="", bool treat_as_directory=false)
 Retrieves the value of a child node within an XML node. More...
 
bool GetChildNodeValueBool (rapidxml::xml_node<> *parent_node, std::string child_node_name, bool _default=false)
 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,
std::string  _default = "",
bool  treat_as_directory = false 
)

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.
_default- An optional default value if the value cannot be found. Defaults to an empty string.
treat_as_directory- If true, the value will be modified and validated for use as a directory.
Returns
The value of the child node if it was found. If the child node could not be found, an empty string is returned.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetChildNodeValueBool()

bool GetChildNodeValueBool ( rapidxml::xml_node<> *  parent_node,
std::string  child_node_name,
bool  _default = false 
)

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.
+ Here is the call graph for this function:
+ Here is the caller graph for this function: