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

#include <Log.h>

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

Public Member Functions

 StreamLogHandler (int fd, bool should_close, size_t buffer_size=0)
 
 ~StreamLogHandler () override
 
void Emit (llvm::StringRef message) override
 
void Flush ()
 
bool isA (const void *ClassID) const override
 
- Public Member Functions inherited from lldb_private::LogHandler
virtual ~LogHandler ()=default
 
virtual void Emit (llvm::StringRef message)=0
 
virtual bool isA (const void *ClassID) const
 

Static Public Member Functions

static bool classof (const LogHandler *obj)
 
- Static Public Member Functions inherited from lldb_private::LogHandler
static bool classof (const LogHandler *obj)
 

Private Attributes

std::mutex m_mutex
 
llvm::raw_fd_ostream m_stream
 

Static Private Attributes

static char ID
 

Detailed Description

Definition at line 60 of file Log.h.

Constructor & Destructor Documentation

◆ StreamLogHandler()

StreamLogHandler::StreamLogHandler ( int  fd,
bool  should_close,
size_t  buffer_size = 0 
)

Definition at line 380 of file Log.cpp.

References m_stream.

◆ ~StreamLogHandler()

StreamLogHandler::~StreamLogHandler ( )
override

Definition at line 387 of file Log.cpp.

References Flush().

Member Function Documentation

◆ classof()

static bool lldb_private::StreamLogHandler::classof ( const LogHandler obj)
inlinestatic

Definition at line 69 of file Log.h.

References ID, and lldb_private::LogHandler::isA().

◆ Emit()

void StreamLogHandler::Emit ( llvm::StringRef  message)
overridevirtual

Implements lldb_private::LogHandler.

Definition at line 394 of file Log.cpp.

References m_mutex, and m_stream.

◆ Flush()

void StreamLogHandler::Flush ( )

Definition at line 389 of file Log.cpp.

References m_mutex, and m_stream.

Referenced by ~StreamLogHandler().

◆ isA()

bool lldb_private::StreamLogHandler::isA ( const void *  ClassID) const
inlineoverridevirtual

Reimplemented from lldb_private::LogHandler.

Definition at line 68 of file Log.h.

References ID.

Member Data Documentation

◆ ID

char StreamLogHandler::ID
staticprivate

Definition at line 74 of file Log.h.

Referenced by classof(), and isA().

◆ m_mutex

std::mutex lldb_private::StreamLogHandler::m_mutex
private

Definition at line 72 of file Log.h.

Referenced by Emit(), and Flush().

◆ m_stream

llvm::raw_fd_ostream lldb_private::StreamLogHandler::m_stream
private

Definition at line 73 of file Log.h.

Referenced by Emit(), Flush(), and StreamLogHandler().


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