LLDB mainline
|
#include <XML.h>
Public Member Functions | |
ApplePropertyList () | |
ApplePropertyList (const char *path) | |
~ApplePropertyList () | |
bool | ParseFile (const char *path) |
llvm::StringRef | GetErrors () const |
operator bool () const | |
bool | IsValid () const |
XMLNode | GetValueNode (const char *key) const |
bool | GetValueAsString (const char *key, std::string &value) const |
StructuredData::ObjectSP | GetStructuredData () |
Static Protected Member Functions | |
static bool | ExtractStringFromValueNode (const XMLNode &node, std::string &value) |
Protected Attributes | |
XMLDocument | m_xml_doc |
XMLNode | m_dict_node |
ApplePropertyList::ApplePropertyList | ( | const char * | path | ) |
Definition at line 376 of file XML.cpp.
References ParseFile().
|
default |
|
staticprotected |
Definition at line 435 of file XML.cpp.
References lldb_private::XMLNode::GetElementText(), lldb_private::XMLNode::GetName(), and lldb_private::XMLNode::IsValid().
Referenced by GetValueAsString().
llvm::StringRef ApplePropertyList::GetErrors | ( | ) | const |
Definition at line 383 of file XML.cpp.
References lldb_private::XMLDocument::GetErrors(), and m_xml_doc.
StructuredData::ObjectSP ApplePropertyList::GetStructuredData | ( | ) |
Definition at line 511 of file XML.cpp.
References IsValid(), and m_dict_node.
Referenced by SymbolVendorMacOSX::CreateInstance().
bool ApplePropertyList::GetValueAsString | ( | const char * | key, |
std::string & | value | ||
) | const |
Definition at line 404 of file XML.cpp.
References ExtractStringFromValueNode(), and GetValueNode().
Referenced by SymbolVendorMacOSX::CreateInstance(), and lldb_private::PlatformDarwin::GetOSVersion().
XMLNode ApplePropertyList::GetValueNode | ( | const char * | key | ) | const |
Definition at line 412 of file XML.cpp.
References lldb_private::XMLNode::ForEachChildElementWithName(), lldb_private::XMLNode::GetElementText(), IsValid(), and m_dict_node.
Referenced by GetValueAsString().
bool ApplePropertyList::IsValid | ( | ) | const |
Definition at line 402 of file XML.cpp.
References m_dict_node.
Referenced by GetStructuredData(), GetValueNode(), and operator bool().
|
inlineexplicit |
bool ApplePropertyList::ParseFile | ( | const char * | path | ) |
Definition at line 387 of file XML.cpp.
References lldb_private::XMLNode::ForEachChildElementWithName(), lldb_private::XMLDocument::GetRootElement(), m_dict_node, m_xml_doc, and lldb_private::XMLDocument::ParseFile().
Referenced by ApplePropertyList().
|
protected |
Definition at line 177 of file XML.h.
Referenced by GetStructuredData(), GetValueNode(), IsValid(), and ParseFile().
|
protected |
Definition at line 176 of file XML.h.
Referenced by GetErrors(), and ParseFile().