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

#include "ui-file.h"

Inheritance diagram for string_file:
ui_file tab_expansion_file

Public Member Functions

 string_file ()
 
 string_file (bool term_out)
 
 ~string_file () override
 
 string_file (string_file &&other)=default
 
void write (const char *buf, long length_buf) override
 
long read (char *buf, long length_buf) override
 
bool term_out () override
 
bool can_emit_style_escape () override
 
const std::string & string ()
 
std::string release ()
 
string_fileoperator= (std::string &&str)
 
const char * data () const
 
const char * c_str () const
 
size_t size () const
 
bool empty () const
 
void clear ()
 
- 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 void write_async_safe (const char *buf, long length_buf)
 
virtual void puts (const char *str)
 
virtual bool isatty ()
 
virtual void flush ()
 
virtual int fd () const
 
virtual void wrap_here (int indent)
 
virtual void emit_style_escape (const ui_file_style &style)
 
virtual void reset_style ()
 
virtual void puts_unfiltered (const char *str)
 

Private Attributes

std::string m_string
 
bool m_term_out
 

Additional Inherited Members

- Protected Attributes inherited from ui_file
ui_file_style m_applied_style
 

Detailed Description

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

Constructor & Destructor Documentation

◆ string_file() [1/3]

string_file::string_file ( )
inline

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

◆ string_file() [2/3]

string_file::string_file ( bool term_out)
inlineexplicit

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

◆ ~string_file()

string_file::~string_file ( )
override

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

Referenced by gdb_disassembler::print_insn().

◆ string_file() [3/3]

string_file::string_file ( string_file && other)
default

Member Function Documentation

◆ c_str()

const char * string_file::c_str ( ) const
inline

◆ can_emit_style_escape()

bool string_file::can_emit_style_escape ( )
overridevirtual

Reimplemented from ui_file.

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

References m_term_out, and term_cli_styling().

◆ clear()

void string_file::clear ( )
inline

◆ data()

const char * string_file::data ( ) const
inline

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

References m_string.

Referenced by mi_ui_out::put().

◆ empty()

bool string_file::empty ( ) const
inline

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

References m_string.

Referenced by archpy_disassemble(), dwarf2_compute_name(), and ui_out::field_stream().

◆ operator=()

string_file & string_file::operator= ( std::string && str)
inline

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

References m_string.

◆ read()

long string_file::read ( char * buf,
long length_buf )
inlineoverridevirtual

Reimplemented from ui_file.

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

◆ release()

std::string string_file::release ( )
inline

◆ size()

size_t string_file::size ( ) const
inline

◆ string()

const std::string & string_file::string ( )
inline

◆ term_out()

bool string_file::term_out ( )
overridevirtual

Reimplemented from ui_file.

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

References m_term_out.

Referenced by gdb_disassembler::print_insn().

◆ write()

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

Member Data Documentation

◆ m_string

std::string string_file::m_string
private

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

Referenced by c_str(), clear(), data(), empty(), operator=(), release(), size(), string(), and write().

◆ m_term_out

bool string_file::m_term_out
private

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

Referenced by can_emit_style_escape(), and term_out().


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