GDB (xrefs)
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
tee_file Class Reference

#include "ui-file.h"

Inheritance diagram for tee_file:
ui_file

Public Member Functions

 tee_file (ui_file *one, ui_file *two)
 
 ~tee_file () override
 
void write (const char *buf, long length_buf) override
 
void write_async_safe (const char *buf, long length_buf) override
 
void puts (const char *) override
 
bool isatty () override
 
bool term_out () override
 
bool can_emit_style_escape () override
 
void flush () override
 
void emit_style_escape (const ui_file_style &style) override
 
void reset_style () override
 
void puts_unfiltered (const char *str) override
 
- Public Member Functions inherited from ui_file
 ui_file ()
 
virtual ~ui_file ()=0
 
 ui_file (ui_file &&other)=default
 
void printf (const char *,...) ATTRIBUTE_PRINTF(2
 
void void putstr (const char *str, int quoter)
 
void putstrn (const char *str, int n, int quoter, bool async_safe=false)
 
void putc (int c)
 
void vprintf (const char *, va_list) ATTRIBUTE_PRINTF(2
 
virtual long read (char *buf, long length_buf)
 
virtual int fd () const
 
virtual void wrap_here (int indent)
 

Private Attributes

ui_filem_one
 
ui_filem_two
 

Additional Inherited Members

- Protected Attributes inherited from ui_file
ui_file_style m_applied_style
 

Detailed Description

Definition at line 333 of file ui-file.h.

Constructor & Destructor Documentation

◆ tee_file()

tee_file::tee_file ( ui_file * one,
ui_file * two )

Definition at line 387 of file ui-file.c.

◆ ~tee_file()

tee_file::~tee_file ( )
override

Definition at line 392 of file ui-file.c.

Member Function Documentation

◆ can_emit_style_escape()

bool tee_file::can_emit_style_escape ( )
overridevirtual

Reimplemented from ui_file.

Definition at line 441 of file ui-file.c.

References m_one, term_cli_styling(), and ui_file::term_out().

◆ emit_style_escape()

void tee_file::emit_style_escape ( const ui_file_style & style)
inlineoverridevirtual

Reimplemented from ui_file.

Definition at line 350 of file ui-file.h.

References ui_file::emit_style_escape(), m_one, and m_two.

◆ flush()

void tee_file::flush ( )
overridevirtual

Reimplemented from ui_file.

Definition at line 397 of file ui-file.c.

References ui_file::flush(), m_one, and m_two.

◆ isatty()

bool tee_file::isatty ( )
overridevirtual

Reimplemented from ui_file.

Definition at line 425 of file ui-file.c.

References ui_file::isatty(), and m_one.

◆ puts()

void tee_file::puts ( const char * linebuffer)
overridevirtual

Reimplemented from ui_file.

Definition at line 418 of file ui-file.c.

References m_one, m_two, and ui_file::puts().

◆ puts_unfiltered()

void tee_file::puts_unfiltered ( const char * str)
inlineoverridevirtual

Reimplemented from ui_file.

Definition at line 362 of file ui-file.h.

References m_one, m_two, and ui_file::puts_unfiltered().

◆ reset_style()

void tee_file::reset_style ( )
inlineoverridevirtual

Reimplemented from ui_file.

Definition at line 356 of file ui-file.h.

References m_one, m_two, and ui_file::reset_style().

◆ term_out()

bool tee_file::term_out ( )
overridevirtual

Reimplemented from ui_file.

Definition at line 433 of file ui-file.c.

References m_one, and ui_file::term_out().

◆ write()

void tee_file::write ( const char * buf,
long length_buf )
overridevirtual

Implements ui_file.

Definition at line 404 of file ui-file.c.

References m_one, m_two, and ui_file::write().

Referenced by gdb._GdbFile::writelines().

◆ write_async_safe()

void tee_file::write_async_safe ( const char * buf,
long length_buf )
overridevirtual

Reimplemented from ui_file.

Definition at line 411 of file ui-file.c.

References m_one, m_two, and ui_file::write_async_safe().

Member Data Documentation

◆ m_one

ui_file* tee_file::m_one
private

◆ m_two

ui_file* tee_file::m_two
private

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