LLDB  mainline
Public Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
lldb_private::ApplePropertyList Class Reference

#include <XML.h>

Collaboration diagram for lldb_private::ApplePropertyList:
Collaboration graph
[legend]

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 143 of file XML.h.

Constructor & Destructor Documentation

◆ ApplePropertyList() [1/2]

ApplePropertyList::ApplePropertyList ( )

Definition at line 393 of file XML.cpp.

◆ ApplePropertyList() [2/2]

ApplePropertyList::ApplePropertyList ( const char *  path)

Definition at line 395 of file XML.cpp.

References ParseFile().

◆ ~ApplePropertyList()

ApplePropertyList::~ApplePropertyList ( )

Definition at line 400 of file XML.cpp.

Member Function Documentation

◆ ExtractStringFromValueNode()

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

◆ GetErrors()

llvm::StringRef ApplePropertyList::GetErrors ( ) const

Definition at line 402 of file XML.cpp.

References lldb_private::XMLDocument::GetErrors(), and m_xml_doc.

◆ GetStructuredData()

StructuredData::ObjectSP ApplePropertyList::GetStructuredData ( )

Definition at line 533 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

Definition at line 423 of file XML.cpp.

References ExtractStringFromValueNode(), and GetValueNode().

Referenced by SymbolVendorMacOSX::CreateInstance().

◆ GetValueNode()

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

◆ IsValid()

bool ApplePropertyList::IsValid ( ) const

Definition at line 421 of file XML.cpp.

References m_dict_node.

Referenced by GetStructuredData(), and GetValueNode().

◆ operator bool()

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

Definition at line 155 of file XML.h.

References lldb_private::XMLNode::IsValid().

◆ ParseFile()

bool ApplePropertyList::ParseFile ( const char *  path)

Member Data Documentation

◆ m_dict_node

XMLNode lldb_private::ApplePropertyList::m_dict_node
protected

Definition at line 175 of file XML.h.

Referenced by GetStructuredData(), GetValueNode(), IsValid(), and ParseFile().

◆ m_xml_doc

XMLDocument lldb_private::ApplePropertyList::m_xml_doc
protected

Definition at line 174 of file XML.h.

Referenced by GetErrors(), and ParseFile().


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