 |
Blamite Game Engine - Strings
00402.09.29.23.0627.blamite
A library containing general purpose utilities and classes for use in multiple projects.
|
Go to the documentation of this file.
6 #define STRINGS_API __declspec(dllexport)
8 #define STRINGS_API __declspec(dllimport)
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:51
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:14
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:91
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:21
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:8
Class representing a node of XML document.
Definition: rapidxml.hpp:137
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:8
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