LLDB mainline
|
#include <XML.h>
Public Member Functions | |
XMLDocument () | |
~XMLDocument () | |
operator bool () const | |
bool | IsValid () const |
void | Clear () |
bool | ParseFile (const char *path) |
bool | ParseMemory (const char *xml, size_t xml_length, const char *url="untitled.xml") |
XMLNode | GetRootElement (const char *required_name=nullptr) |
llvm::StringRef | GetErrors () const |
Static Public Member Functions | |
static void | ErrorCallback (void *ctx, const char *format,...) |
static bool | XMLEnabled () |
Protected Attributes | |
XMLDocumentImpl | m_document = nullptr |
StreamString | m_errors |
|
default |
void XMLDocument::Clear | ( | ) |
Definition at line 23 of file XML.cpp.
References m_document.
Referenced by ParseFile(), ParseMemory(), and ~XMLDocument().
|
static |
Definition at line 35 of file XML.cpp.
References lldb_private::Stream::EOL(), m_errors, and lldb_private::Stream::PrintfVarArg().
Referenced by ParseFile(), and ParseMemory().
llvm::StringRef XMLDocument::GetErrors | ( | ) | const |
Definition at line 81 of file XML.cpp.
References lldb_private::StreamString::GetString(), and m_errors.
Referenced by lldb_private::ApplePropertyList::GetErrors().
XMLNode XMLDocument::GetRootElement | ( | const char * | required_name = nullptr | ) |
Definition at line 65 of file XML.cpp.
References lldb_private::XMLNode::GetName(), IsValid(), and m_document.
Referenced by lldb_private::process_gdb_remote::ProcessGDBRemote::GetGDBServerRegisterInfoXMLAndProcess(), lldb_private::process_gdb_remote::ProcessGDBRemote::GetLoadedModuleList(), lldb_private::process_gdb_remote::GDBRemoteCommunicationClient::LoadQXferMemoryMap(), and lldb_private::ApplePropertyList::ParseFile().
bool XMLDocument::IsValid | ( | ) | const |
Definition at line 33 of file XML.cpp.
References m_document.
Referenced by GetRootElement(), operator bool(), ParseFile(), and ParseMemory().
|
inlineexplicit |
bool XMLDocument::ParseFile | ( | const char * | path | ) |
Definition at line 44 of file XML.cpp.
References Clear(), ErrorCallback(), IsValid(), and m_document.
Referenced by lldb_private::ApplePropertyList::ParseFile().
bool XMLDocument::ParseMemory | ( | const char * | xml, |
size_t | xml_length, | ||
const char * | url = "untitled.xml" |
||
) |
Definition at line 54 of file XML.cpp.
References Clear(), ErrorCallback(), IsValid(), and m_document.
Referenced by lldb_private::process_gdb_remote::ProcessGDBRemote::GetGDBServerRegisterInfoXMLAndProcess(), lldb_private::process_gdb_remote::ProcessGDBRemote::GetLoadedModuleList(), and lldb_private::process_gdb_remote::GDBRemoteCommunicationClient::LoadQXferMemoryMap().
|
static |
Definition at line 83 of file XML.cpp.
Referenced by SymbolVendorMacOSX::CreateInstance(), lldb::SBDebugger::GetBuildConfiguration(), lldb_private::process_gdb_remote::ProcessGDBRemote::GetGDBServerRegisterInfo(), lldb_private::process_gdb_remote::ProcessGDBRemote::GetLoadedModuleList(), and lldb_private::process_gdb_remote::GDBRemoteCommunicationClient::LoadQXferMemoryMap().
|
protected |
Definition at line 141 of file XML.h.
Referenced by Clear(), GetRootElement(), IsValid(), ParseFile(), and ParseMemory().
|
protected |
Definition at line 142 of file XML.h.
Referenced by ErrorCallback(), and GetErrors().