Audacity 3.2.0
|
#include <XMLWriter.h>
Public Member Functions | |
void | StartTag (const std::string_view &name) |
void | EndTag (const std::string_view &name) |
void | WriteAttr (const std::string_view &name, const Identifier &value) |
void | WriteAttr (const std::string_view &name, const std::string_view &value) |
void | WriteAttr (const std::string_view &name, int value) |
void | WriteAttr (const std::string_view &name, bool value) |
void | WriteAttr (const std::string_view &name, long value) |
void | WriteAttr (const std::string_view &name, long long value) |
void | WriteAttr (const std::string_view &name, size_t value) |
void | WriteAttr (const std::string_view &name, float value, int digits=-1) |
void | WriteAttr (const std::string_view &name, double value, int digits=-1) |
void | WriteData (const std::string_view &value) |
void | WriteSubTree (const std::string_view &value) |
void | Write (const std::string_view &value) |
MemoryStream | ConsumeResult () |
Private Member Functions | |
void | WriteEscaped (const std::string_view &value) |
Private Attributes | |
MemoryStream | mStream |
bool | mInTag { false } |
Definition at line 152 of file XMLWriter.h.
MemoryStream XMLUtf8BufferWriter::ConsumeResult | ( | ) |
void XMLUtf8BufferWriter::EndTag | ( | const std::string_view & | name | ) |
Definition at line 446 of file XMLWriter.cpp.
References mInTag, name, and Write().
void XMLUtf8BufferWriter::StartTag | ( | const std::string_view & | name | ) |
void XMLUtf8BufferWriter::Write | ( | const std::string_view & | value | ) |
Definition at line 573 of file XMLWriter.cpp.
References MemoryStream::AppendData(), and mStream.
Referenced by EndTag(), StartTag(), WriteAttr(), WriteData(), WriteEscaped(), and WriteSubTree().
void XMLUtf8BufferWriter::WriteAttr | ( | const std::string_view & | name, |
bool | value | ||
) |
Definition at line 485 of file XMLWriter.cpp.
References name, and WriteAttr().
void XMLUtf8BufferWriter::WriteAttr | ( | const std::string_view & | name, |
const Identifier & | value | ||
) |
Definition at line 461 of file XMLWriter.cpp.
References Identifier::GET(), name, and WriteAttr().
Referenced by WriteAttr().
void XMLUtf8BufferWriter::WriteAttr | ( | const std::string_view & | name, |
const std::string_view & | value | ||
) |
Definition at line 468 of file XMLWriter.cpp.
References mInTag, name, Write(), and WriteEscaped().
void XMLUtf8BufferWriter::WriteAttr | ( | const std::string_view & | name, |
double | value, | ||
int | digits = -1 |
||
) |
Definition at line 534 of file XMLWriter.cpp.
References name, THROW_INCONSISTENCY_EXCEPTION, ToChars(), and WriteAttr().
void XMLUtf8BufferWriter::WriteAttr | ( | const std::string_view & | name, |
float | value, | ||
int | digits = -1 |
||
) |
Definition at line 517 of file XMLWriter.cpp.
References name, THROW_INCONSISTENCY_EXCEPTION, ToChars(), and WriteAttr().
void XMLUtf8BufferWriter::WriteAttr | ( | const std::string_view & | name, |
int | value | ||
) |
Definition at line 480 of file XMLWriter.cpp.
References name, and WriteAttr().
void XMLUtf8BufferWriter::WriteAttr | ( | const std::string_view & | name, |
long long | value | ||
) |
Definition at line 496 of file XMLWriter.cpp.
References name, THROW_INCONSISTENCY_EXCEPTION, ToChars(), and WriteAttr().
void XMLUtf8BufferWriter::WriteAttr | ( | const std::string_view & | name, |
long | value | ||
) |
Definition at line 490 of file XMLWriter.cpp.
References name, and WriteAttr().
void XMLUtf8BufferWriter::WriteAttr | ( | const std::string_view & | name, |
size_t | value | ||
) |
Definition at line 511 of file XMLWriter.cpp.
References name, and WriteAttr().
void XMLUtf8BufferWriter::WriteData | ( | const std::string_view & | value | ) |
Definition at line 551 of file XMLWriter.cpp.
References mInTag, Write(), and WriteEscaped().
|
private |
Definition at line 583 of file XMLWriter.cpp.
References MemoryStream::AppendByte(), charXMLCompatiblity, mStream, Write(), and wxT().
Referenced by WriteAttr(), and WriteData().
void XMLUtf8BufferWriter::WriteSubTree | ( | const std::string_view & | value | ) |
|
private |
Definition at line 184 of file XMLWriter.h.
Referenced by EndTag(), StartTag(), WriteAttr(), WriteData(), and WriteSubTree().
|
private |
Definition at line 182 of file XMLWriter.h.
Referenced by ConsumeResult(), Write(), and WriteEscaped().