LLDB mainline
|
#include <XML.h>
Public Member Functions | |
XMLNode () | |
XMLNode (XMLNodeImpl node) | |
~XMLNode () | |
operator bool () const | |
void | Clear () |
bool | IsValid () const |
bool | IsElement () const |
llvm::StringRef | GetName () const |
bool | GetElementText (std::string &text) const |
bool | GetElementTextAsUnsigned (uint64_t &value, uint64_t fail_value=0, int base=0) const |
bool | GetElementTextAsFloat (double &value, double fail_value=0.0) const |
bool | NameIs (const char *name) const |
XMLNode | GetParent () const |
XMLNode | GetSibling () const |
XMLNode | GetChild () const |
std::string | GetAttributeValue (const char *name, const char *fail_value=nullptr) const |
bool | GetAttributeValueAsUnsigned (const char *name, uint64_t &value, uint64_t fail_value=0, int base=0) const |
XMLNode | FindFirstChildElementWithName (const char *name) const |
XMLNode | GetElementForPath (const NamePath &path) |
void | ForEachSiblingNode (NodeCallback const &callback) const |
void | ForEachSiblingElement (NodeCallback const &callback) const |
void | ForEachSiblingElementWithName (const char *name, NodeCallback const &callback) const |
void | ForEachChildNode (NodeCallback const &callback) const |
void | ForEachChildElement (NodeCallback const &callback) const |
void | ForEachChildElementWithName (const char *name, NodeCallback const &callback) const |
void | ForEachAttribute (AttributeCallback const &callback) const |
Protected Attributes | |
XMLNodeImpl | m_node = nullptr |
|
default |
XMLNode::XMLNode | ( | XMLNodeImpl | node | ) |
|
default |
XMLNode XMLNode::FindFirstChildElementWithName | ( | const char * | name | ) | const |
Definition at line 328 of file XML.cpp.
References ForEachChildElementWithName().
Referenced by GetElementForPath(), and lldb_private::process_gdb_remote::ProcessGDBRemote::GetLoadedModuleList().
void XMLNode::ForEachAttribute | ( | AttributeCallback const & | callback | ) | const |
Definition at line 186 of file XML.cpp.
References IsValid(), and m_node.
Referenced by lldb_private::process_gdb_remote::ProcessGDBRemote::GetGDBServerRegisterInfoXMLAndProcess(), and lldb_private::process_gdb_remote::ProcessGDBRemote::GetLoadedModuleList().
void XMLNode::ForEachChildElement | ( | NodeCallback const & | callback | ) | const |
Definition at line 169 of file XML.cpp.
References ForEachSiblingElement(), and GetChild().
Referenced by lldb_private::process_gdb_remote::ProcessGDBRemote::GetGDBServerRegisterInfoXMLAndProcess(), and lldb_private::process_gdb_remote::GDBRemoteCommunicationClient::LoadQXferMemoryMap().
void XMLNode::ForEachChildElementWithName | ( | const char * | name, |
NodeCallback const & | callback | ||
) | const |
Definition at line 177 of file XML.cpp.
References ForEachSiblingElementWithName(), and GetChild().
Referenced by FindFirstChildElementWithName(), lldb_private::process_gdb_remote::ProcessGDBRemote::GetGDBServerRegisterInfoXMLAndProcess(), lldb_private::process_gdb_remote::ProcessGDBRemote::GetLoadedModuleList(), lldb_private::ApplePropertyList::GetValueNode(), and lldb_private::ApplePropertyList::ParseFile().
void XMLNode::ForEachChildNode | ( | NodeCallback const & | callback | ) | const |
Definition at line 162 of file XML.cpp.
References ForEachSiblingNode(), GetChild(), and IsValid().
void XMLNode::ForEachSiblingElement | ( | NodeCallback const & | callback | ) | const |
void XMLNode::ForEachSiblingElementWithName | ( | const char * | name, |
NodeCallback const & | callback | ||
) | const |
void XMLNode::ForEachSiblingNode | ( | NodeCallback const & | callback | ) | const |
std::string XMLNode::GetAttributeValue | ( | const char * | name, |
const char * | fail_value = nullptr |
||
) | const |
Definition at line 135 of file XML.cpp.
References IsValid(), and m_node.
Referenced by GetAttributeValueAsUnsigned(), lldb_private::process_gdb_remote::ProcessGDBRemote::GetGDBServerRegisterInfoXMLAndProcess(), lldb_private::process_gdb_remote::ProcessGDBRemote::GetLoadedModuleList(), and lldb_private::process_gdb_remote::GDBRemoteCommunicationClient::LoadQXferMemoryMap().
bool XMLNode::GetAttributeValueAsUnsigned | ( | const char * | name, |
uint64_t & | value, | ||
uint64_t | fail_value = 0 , |
||
int | base = 0 |
||
) | const |
Definition at line 156 of file XML.cpp.
References GetAttributeValue().
Referenced by lldb_private::process_gdb_remote::GDBRemoteCommunicationClient::LoadQXferMemoryMap().
XMLNode XMLNode::GetChild | ( | ) | const |
Definition at line 123 of file XML.cpp.
References IsValid(), m_node, and XMLNode().
Referenced by ForEachChildElement(), ForEachChildElementWithName(), and ForEachChildNode().
Definition at line 353 of file XML.cpp.
References FindFirstChildElementWithName(), IsValid(), and XMLNode().
bool XMLNode::GetElementText | ( | std::string & | text | ) | const |
Definition at line 278 of file XML.cpp.
References IsValid(), and m_node.
Referenced by lldb_private::ApplePropertyList::ExtractStringFromValueNode(), GetElementTextAsFloat(), GetElementTextAsUnsigned(), lldb_private::process_gdb_remote::ProcessGDBRemote::GetGDBServerRegisterInfoXMLAndProcess(), and lldb_private::ApplePropertyList::GetValueNode().
bool XMLNode::GetElementTextAsFloat | ( | double & | value, |
double | fail_value = 0.0 |
||
) | const |
Definition at line 307 of file XML.cpp.
References GetElementText().
bool XMLNode::GetElementTextAsUnsigned | ( | uint64_t & | value, |
uint64_t | fail_value = 0 , |
||
int | base = 0 |
||
) | const |
Definition at line 299 of file XML.cpp.
References GetElementText().
Referenced by lldb_private::process_gdb_remote::GDBRemoteCommunicationClient::LoadQXferMemoryMap().
llvm::StringRef XMLNode::GetName | ( | ) | const |
Definition at line 268 of file XML.cpp.
References IsValid(), and m_node.
Referenced by lldb_private::ApplePropertyList::ExtractStringFromValueNode(), lldb_private::process_gdb_remote::ProcessGDBRemote::GetGDBServerRegisterInfoXMLAndProcess(), lldb_private::XMLDocument::GetRootElement(), and lldb_private::process_gdb_remote::GDBRemoteCommunicationClient::LoadQXferMemoryMap().
XMLNode XMLNode::GetParent | ( | ) | const |
XMLNode XMLNode::GetSibling | ( | ) | const |
bool XMLNode::IsElement | ( | ) | const |
Definition at line 345 of file XML.cpp.
References IsValid(), and m_node.
Referenced by lldb_private::process_gdb_remote::GDBRemoteCommunicationClient::LoadQXferMemoryMap().
bool XMLNode::IsValid | ( | ) | const |
Definition at line 343 of file XML.cpp.
References m_node.
Referenced by lldb_private::ApplePropertyList::ExtractStringFromValueNode(), ForEachAttribute(), ForEachChildNode(), ForEachSiblingElement(), ForEachSiblingElementWithName(), ForEachSiblingNode(), GetAttributeValue(), GetChild(), GetElementForPath(), GetElementText(), GetName(), GetParent(), GetSibling(), IsElement(), NameIs(), and operator bool().
bool XMLNode::NameIs | ( | const char * | name | ) | const |
|
inlineexplicit |
|
protected |
Definition at line 110 of file XML.h.
Referenced by Clear(), ForEachAttribute(), ForEachSiblingElement(), ForEachSiblingElementWithName(), ForEachSiblingNode(), GetAttributeValue(), GetChild(), GetElementText(), GetName(), GetParent(), GetSibling(), IsElement(), IsValid(), and NameIs().