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

#include "pager.h"

Inheritance diagram for pager_file:
wrapped_file ui_file

Public Member Functions

 pager_file (ui_file *stream)
 
 ~pager_file ()
 
 DISABLE_COPY_AND_ASSIGN (pager_file)
 
void write (const char *buf, long length_buf) override
 
void puts (const char *str) override
 
void write_async_safe (const char *buf, long length_buf) override
 
void emit_style_escape (const ui_file_style &style) override
 
void reset_style () override
 
void flush () override
 
void wrap_here (int indent) override
 
void puts_unfiltered (const char *str) override
 
- Public Member Functions inherited from wrapped_file
bool isatty () override
 
bool term_out () override
 
bool can_emit_style_escape () override
 
void flush () override
 
void wrap_here (int indent) override
 
void emit_style_escape (const ui_file_style &style) override
 
void reset_style () override
 
int fd () const override
 
void puts_unfiltered (const char *str) override
 
void write_async_safe (const char *buf, long length_buf) 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)
 

Private Member Functions

void prompt_for_continue ()
 
void flush_wrap_buffer ()
 

Private Attributes

std::string m_wrap_buffer
 
int m_wrap_indent = 0
 
int m_wrap_column = 0
 
ui_file_style m_wrap_style
 
bool m_paging = false
 

Additional Inherited Members

- Protected Member Functions inherited from wrapped_file
 wrapped_file (ui_file *stream)
 
- Protected Attributes inherited from wrapped_file
ui_filem_stream
 
- Protected Attributes inherited from ui_file
ui_file_style m_applied_style
 

Detailed Description

Definition at line 26 of file pager.h.

Constructor & Destructor Documentation

◆ pager_file()

pager_file::pager_file ( ui_file * stream)
inlineexplicit

Definition at line 31 of file pager.h.

◆ ~pager_file()

pager_file::~pager_file ( )
inline

Definition at line 36 of file pager.h.

References wrapped_file::m_stream.

Member Function Documentation

◆ DISABLE_COPY_AND_ASSIGN()

pager_file::DISABLE_COPY_AND_ASSIGN ( pager_file )

◆ emit_style_escape()

void pager_file::emit_style_escape ( const ui_file_style & style)
overridevirtual

◆ flush()

void pager_file::flush ( )
overridevirtual

Reimplemented from ui_file.

Definition at line 1489 of file utils.c.

References ui_file::flush(), flush_wrap_buffer(), and wrapped_file::m_stream.

◆ flush_wrap_buffer()

void pager_file::flush_wrap_buffer ( )
private

Definition at line 1479 of file utils.c.

References m_paging, wrapped_file::m_stream, m_wrap_buffer, and ui_file::puts().

Referenced by flush(), puts(), puts_unfiltered(), and wrap_here().

◆ prompt_for_continue()

void pager_file::prompt_for_continue ( )
private

◆ puts()

void pager_file::puts ( const char * str)
overridevirtual

◆ puts_unfiltered()

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

Reimplemented from ui_file.

Definition at line 59 of file pager.h.

References flush_wrap_buffer(), wrapped_file::m_stream, and ui_file::puts_unfiltered().

◆ reset_style()

void pager_file::reset_style ( )
overridevirtual

◆ wrap_here()

void pager_file::wrap_here ( int indent)
overridevirtual

◆ write()

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

Implements ui_file.

Definition at line 1765 of file utils.c.

References puts().

Referenced by gdb._GdbFile::writelines().

◆ write_async_safe()

void pager_file::write_async_safe ( const char * buf,
long length_buf )
inlineoverridevirtual

Reimplemented from ui_file.

Definition at line 47 of file pager.h.

References wrapped_file::m_stream, and ui_file::write_async_safe().

Member Data Documentation

◆ m_paging

bool pager_file::m_paging = false
private

Definition at line 88 of file pager.h.

Referenced by emit_style_escape(), flush_wrap_buffer(), and prompt_for_continue().

◆ m_wrap_buffer

std::string pager_file::m_wrap_buffer
private

Definition at line 74 of file pager.h.

Referenced by emit_style_escape(), flush_wrap_buffer(), puts(), and reset_style().

◆ m_wrap_column

int pager_file::m_wrap_column = 0
private

Definition at line 81 of file pager.h.

Referenced by puts(), and wrap_here().

◆ m_wrap_indent

int pager_file::m_wrap_indent = 0
private

Definition at line 77 of file pager.h.

Referenced by puts(), and wrap_here().

◆ m_wrap_style

ui_file_style pager_file::m_wrap_style
private

Definition at line 84 of file pager.h.

Referenced by puts(), and wrap_here().


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