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

#include <XML.h>

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

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
 

Detailed Description

Definition at line 113 of file XML.h.

Constructor & Destructor Documentation

◆ XMLDocument()

XMLDocument::XMLDocument ( )
default

◆ ~XMLDocument()

XMLDocument::~XMLDocument ( )

Definition at line 22 of file XML.cpp.

Member Function Documentation

◆ Clear()

void XMLDocument::Clear ( )

Definition at line 24 of file XML.cpp.

◆ ErrorCallback()

void XMLDocument::ErrorCallback ( void *  ctx,
const char *  format,
  ... 
)
static

◆ GetErrors()

llvm::StringRef XMLDocument::GetErrors ( ) const

Definition at line 82 of file XML.cpp.

Referenced by lldb_private::ApplePropertyList::GetErrors().

◆ GetRootElement()

XMLNode XMLDocument::GetRootElement ( const char *  required_name = nullptr)

◆ IsValid()

bool XMLDocument::IsValid ( ) const

Definition at line 34 of file XML.cpp.

Referenced by operator bool().

◆ operator bool()

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

Definition at line 119 of file XML.h.

References IsValid().

◆ ParseFile()

bool XMLDocument::ParseFile ( const char *  path)

Definition at line 45 of file XML.cpp.

Referenced by lldb_private::ApplePropertyList::ParseFile().

◆ ParseMemory()

bool XMLDocument::ParseMemory ( const char *  xml,
size_t  xml_length,
const char *  url = "untitled.xml" 
)

◆ XMLEnabled()

bool XMLDocument::XMLEnabled ( )
static

Member Data Documentation

◆ m_document

XMLDocumentImpl lldb_private::XMLDocument::m_document = nullptr
protected

Definition at line 141 of file XML.h.

◆ m_errors

StreamString lldb_private::XMLDocument::m_errors
protected

Definition at line 142 of file XML.h.

Referenced by ErrorCallback().


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