![]() |
Blamite Game Engine - Strings
00420.05.12.24.2119.blamite
A library containing general purpose utilities and classes for use in multiple projects.
|
#include "project_info.h"
#include <fstream>
#include "components/3rdparty/rapidxml/rapidxml.hpp"
#include "components/utils/xml/xml.h"
#include "components/utils/converters/converters.h"
#include "components/utils/io/io.h"
#include "components/logger/logger.h"
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... | |
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.
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. |
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.
parent_node | - The parent XML node. |
child_node_name | - The name of the child node. |