9 #ifndef anna_xml_Compiler_hpp 10 #define anna_xml_Compiler_hpp 69 a_buffer =
new char [a_maxSize = 8192];
70 a_buffer [a_size = 0] = 0;
72 ~Result() {
delete [] a_buffer; }
74 void clear() { a_buffer [a_size = 0] = 0; }
76 void operator += (
const char c)
78 extend(
sizeof(c) * 2);
79 a_buffer [a_size ++] = c;
80 a_buffer [a_size] = 0;
83 void operator += (
const char* str)
91 void operator += (
const std::string& str) noexcept(
false) {(*this) += str.c_str(); }
93 const char* c_str()
const {
return a_buffer; }
100 void extend(
const int size) noexcept(
false);
107 static void apply(
const Node*, Result&,
const int level,
const int flags) noexcept(
false);
108 static void apply(
const Node*, Result&,
const int flags) noexcept(
false);
109 static void open(
const Node*, Result&,
const int level,
const bool quickClose,
const bool newline,
const int flags)
111 static void writeFullName(
const Node*, Result&,
const int flags) noexcept(
false);
112 static void writeFullName(
const Attribute*, Result&,
const int flags) noexcept(
false);
113 static void close(
const Node*, Result&,
const int level,
const int flags) noexcept(
false);
Definition: Compiler.hpp:28
Definition: Document.hpp:49
Definition: Compiler.hpp:35
xml::Attribute Attribute
Definition: Attribute.hpp:21
#define anna_strcpy(a, b)
Definition: defines.hpp:45
Definition: Compiler.hpp:36
Definition: Compiler.hpp:37
#define anna_strlen(a)
Definition: defines.hpp:50
Definition: Attribute.hpp:35
Definition: Compiler.hpp:39
const char * apply(const Node *node, const int flag=Mode::Visual) noexcept(false)
_v
Definition: Compiler.hpp:34
Definition: Compiler.hpp:33
Definition: Compiler.hpp:38
xml::Node Node
Definition: Node.hpp:21