 |
Blamite Game Engine - Strings
00449.01.12.26.0555.blamite
A library containing general purpose utilities and classes for use in multiple projects.
|
Go to the documentation of this file.
7 #define STRINGS_API __declspec(dllexport)
9 #define STRINGS_API __declspec(dllimport)
40 std::string _default =
"",
bool treat_as_directory =
false);
STRINGS_API 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.
Definition: xml.cpp:120
std::string GenerateNodeString(rapidxml::xml_node<> *node, int indent_level, int spaces_per_indent)
Generates a string for the given XML node.
Definition: xml.cpp:52
STRINGS_API 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.
Definition: xml.cpp:147
STRINGS_API void LogEvent(BlamBasicLogMessage message)
Logs an event to the logger.
Definition: logger.cpp:41
Namespace containing functions for working with XML files and data.
Definition: xml.h:15
STRINGS_API std::string FormatXMLString(std::string xml_contents, int spaces_per_indent=4)
Formats a string containing XML data into a human-readable format.
Definition: xml.cpp:92
Class representing attribute node of XML document.
Definition: rapidxml.hpp:138
std::string GenerateIndentPrefix(int indent_level, int spaces_per_indent)
Generates a string prefix for the given indentation level.
Definition: xml.cpp:22
xml_node< Ch > * first_node(const Ch *name=0, std::size_t name_size=0, bool case_sensitive=true) const
Gets first child node, optionally matching node name.
Definition: rapidxml.hpp:936
node_type type() const
Gets type of node.
Definition: rapidxml.hpp:913
This class represents root of the DOM hierarchy.
Definition: rapidxml.hpp:139
@ node_data
A data node. Name is empty. Value contains data text.
Definition: rapidxml.hpp:147
#define NEWLINE_MARKER
Definition: xml.cpp:9
Class representing a node of XML document.
Definition: rapidxml.hpp:137
STRINGS_API bool StringToBool(std::string string)
Converts a string to a boolean.
Definition: converters.cpp:67
xml_attribute< Ch > * next_attribute(const Ch *name=0, std::size_t name_size=0, bool case_sensitive=true) const
Gets next attribute, optionally matching attribute name.
Definition: rapidxml.hpp:856
xml_attribute< Ch > * first_attribute(const Ch *name=0, std::size_t name_size=0, bool case_sensitive=true) const
Gets first attribute of node, optionally matching attribute name.
Definition: rapidxml.hpp:1025
@ Warning
Indicates a warning message. Not something critical, but something that could cause unexpected behavi...
void parse(Ch *text)
Parses zero-terminated XML string according to given flags.
Definition: rapidxml.hpp:1381
#define STRINGS_API
Definition: xml.h:9
xml_node< Ch > * next_sibling(const Ch *name=0, std::size_t name_size=0, bool case_sensitive=true) const
Gets next sibling node, optionally matching node name.
Definition: rapidxml.hpp:1004