LLDB mainline
lldb_private::ApplePropertyList Class Reference

#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

Detailed Description

Definition at line 145 of file XML.h.

Constructor & Destructor Documentation

◆ ApplePropertyList() [1/2]

ApplePropertyList::ApplePropertyList ( )

Definition at line 374 of file XML.cpp.

References m_dict_node, and m_xml_doc.

◆ ApplePropertyList() [2/2]

ApplePropertyList::ApplePropertyList ( const char * path)

Definition at line 376 of file XML.cpp.

References m_dict_node, m_xml_doc, and ParseFile().

◆ ~ApplePropertyList()

ApplePropertyList::~ApplePropertyList ( )
default

Member Function Documentation

◆ ExtractStringFromValueNode()

bool ApplePropertyList::ExtractStringFromValueNode ( const XMLNode & node,
std::string & value )
staticprotected

◆ GetErrors()

llvm::StringRef ApplePropertyList::GetErrors ( ) const

Definition at line 383 of file XML.cpp.

References m_xml_doc.

◆ GetStructuredData()

StructuredData::ObjectSP ApplePropertyList::GetStructuredData ( )

Definition at line 511 of file XML.cpp.

References IsValid(), and m_dict_node.

Referenced by SymbolVendorMacOSX::CreateInstance().

◆ GetValueAsString()

bool ApplePropertyList::GetValueAsString ( const char * key,
std::string & value ) const

◆ GetValueNode()

XMLNode ApplePropertyList::GetValueNode ( const char * key) const

◆ IsValid()

bool ApplePropertyList::IsValid ( ) const

Definition at line 402 of file XML.cpp.

References m_dict_node.

Referenced by GetStructuredData(), GetValueNode(), and operator bool().

◆ operator bool()

lldb_private::ApplePropertyList::operator bool ( ) const
inlineexplicit

Definition at line 157 of file XML.h.

References IsValid().

◆ ParseFile()

bool ApplePropertyList::ParseFile ( const char * path)

Definition at line 387 of file XML.cpp.

References lldb_private::XMLNode::ForEachChildElementWithName(), m_dict_node, and m_xml_doc.

Referenced by ApplePropertyList().

Member Data Documentation

◆ m_dict_node

XMLNode lldb_private::ApplePropertyList::m_dict_node
protected

◆ m_xml_doc

XMLDocument lldb_private::ApplePropertyList::m_xml_doc
protected

Definition at line 176 of file XML.h.

Referenced by ApplePropertyList(), ApplePropertyList(), GetErrors(), and ParseFile().


The documentation for this class was generated from the following files: