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

#include <DebuggerEvents.h>

Inheritance diagram for lldb_private::DiagnosticEventData:
Inheritance graph
[legend]

Public Types

enum class  Type { Info , Warning , Error }
 

Public Member Functions

 DiagnosticEventData (Type type, std::string message, bool debugger_specific)
 
 ~DiagnosticEventData () override=default
 
const std::string & GetMessage () const
 
bool IsDebuggerSpecific () const
 
Type GetType () const
 
llvm::StringRef GetPrefix () const
 
void Dump (Stream *s) const override
 
llvm::StringRef GetFlavor () const override
 
- Public Member Functions inherited from lldb_private::EventData
 EventData ()
 
virtual ~EventData ()
 
virtual llvm::StringRef GetFlavor () const =0
 
virtual LogGetLogChannel ()
 
virtual void Dump (Stream *s) const
 

Static Public Member Functions

static llvm::StringRef GetFlavorString ()
 
static const DiagnosticEventDataGetEventDataFromEvent (const Event *event_ptr)
 
static StructuredData::DictionarySP GetAsStructuredData (const Event *event_ptr)
 

Protected Member Functions

 DiagnosticEventData (const DiagnosticEventData &)=delete
 
const DiagnosticEventDataoperator= (const DiagnosticEventData &)=delete
 

Protected Attributes

std::string m_message
 
Type m_type
 
const bool m_debugger_specific
 

Detailed Description

Definition at line 77 of file DebuggerEvents.h.

Member Enumeration Documentation

◆ Type

Enumerator
Info 
Warning 
Error 

Definition at line 79 of file DebuggerEvents.h.

Constructor & Destructor Documentation

◆ DiagnosticEventData() [1/2]

lldb_private::DiagnosticEventData::DiagnosticEventData ( Type  type,
std::string  message,
bool  debugger_specific 
)
inline

Definition at line 84 of file DebuggerEvents.h.

◆ ~DiagnosticEventData()

lldb_private::DiagnosticEventData::~DiagnosticEventData ( )
overridedefault

◆ DiagnosticEventData() [2/2]

lldb_private::DiagnosticEventData::DiagnosticEventData ( const DiagnosticEventData )
protecteddelete

Member Function Documentation

◆ Dump()

void DiagnosticEventData::Dump ( Stream s) const
overridevirtual

◆ GetAsStructuredData()

StructuredData::DictionarySP DiagnosticEventData::GetAsStructuredData ( const Event event_ptr)
static

◆ GetEventDataFromEvent()

const DiagnosticEventData * DiagnosticEventData::GetEventDataFromEvent ( const Event event_ptr)
static

◆ GetFlavor()

llvm::StringRef DiagnosticEventData::GetFlavor ( ) const
overridevirtual

Implements lldb_private::EventData.

Definition at line 101 of file DebuggerEvents.cpp.

References GetFlavorString().

◆ GetFlavorString()

llvm::StringRef DiagnosticEventData::GetFlavorString ( )
static

Definition at line 97 of file DebuggerEvents.cpp.

Referenced by GetFlavor().

◆ GetMessage()

const std::string & lldb_private::DiagnosticEventData::GetMessage ( ) const
inline

Definition at line 89 of file DebuggerEvents.h.

References m_message.

Referenced by Dump(), and GetAsStructuredData().

◆ GetPrefix()

llvm::StringRef DiagnosticEventData::GetPrefix ( ) const

Definition at line 75 of file DebuggerEvents.cpp.

References Error, Info, m_type, and Warning.

Referenced by Dump(), and GetAsStructuredData().

◆ GetType()

Type lldb_private::DiagnosticEventData::GetType ( ) const
inline

Definition at line 91 of file DebuggerEvents.h.

References m_type.

◆ IsDebuggerSpecific()

bool lldb_private::DiagnosticEventData::IsDebuggerSpecific ( ) const
inline

Definition at line 90 of file DebuggerEvents.h.

References m_debugger_specific.

Referenced by GetAsStructuredData().

◆ operator=()

const DiagnosticEventData & lldb_private::DiagnosticEventData::operator= ( const DiagnosticEventData )
protecteddelete

Member Data Documentation

◆ m_debugger_specific

const bool lldb_private::DiagnosticEventData::m_debugger_specific
protected

Definition at line 109 of file DebuggerEvents.h.

Referenced by IsDebuggerSpecific().

◆ m_message

std::string lldb_private::DiagnosticEventData::m_message
protected

Definition at line 107 of file DebuggerEvents.h.

Referenced by GetMessage().

◆ m_type

Type lldb_private::DiagnosticEventData::m_type
protected

Definition at line 108 of file DebuggerEvents.h.

Referenced by Dump(), GetPrefix(), and GetType().


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