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]
Collaboration diagram for lldb_private::DiagnosticEventData:
Collaboration graph
[legend]

Public Types

enum  Type { Type::Warning, Type::Error }
 

Public Member Functions

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

Static Public Member Functions

static ConstString GetFlavorString ()
 
static const DiagnosticEventDataGetEventDataFromEvent (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 51 of file DebuggerEvents.h.

Member Enumeration Documentation

◆ Type

Enumerator
Warning 
Error 

Definition at line 53 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 57 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

◆ GetEventDataFromEvent()

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

◆ GetFlavor()

ConstString DiagnosticEventData::GetFlavor ( ) const
overridevirtual

Implements lldb_private::EventData.

Definition at line 74 of file DebuggerEvents.cpp.

References GetFlavorString().

◆ GetFlavorString()

ConstString DiagnosticEventData::GetFlavorString ( )
static

Definition at line 69 of file DebuggerEvents.cpp.

Referenced by GetFlavor().

◆ GetMessage()

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

Definition at line 62 of file DebuggerEvents.h.

References m_message.

Referenced by Dump(), and lldb::SBDebugger::GetDiagnosticFromEvent().

◆ GetPrefix()

llvm::StringRef DiagnosticEventData::GetPrefix ( ) const

Definition at line 49 of file DebuggerEvents.cpp.

References Error, m_type, and Warning.

Referenced by Dump(), and lldb::SBDebugger::GetDiagnosticFromEvent().

◆ GetType()

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

Definition at line 64 of file DebuggerEvents.h.

References m_type.

◆ IsDebuggerSpecific()

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

Definition at line 63 of file DebuggerEvents.h.

References m_debugger_specific.

Referenced by lldb::SBDebugger::GetDiagnosticFromEvent().

◆ 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 79 of file DebuggerEvents.h.

Referenced by IsDebuggerSpecific().

◆ m_message

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

Definition at line 77 of file DebuggerEvents.h.

Referenced by GetMessage().

◆ m_type

Type lldb_private::DiagnosticEventData::m_type
protected

Definition at line 78 of file DebuggerEvents.h.

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


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