GDB (xrefs)
Public Member Functions | Private Attributes | List of all members
string_file Class Reference

#include "ui-file.h"

Inheritance diagram for string_file:
ui_file

Public Member Functions

 string_file ()
 
 ~string_file () override
 
void write (const char *buf, long length_buf) override
 
long read (char *buf, long length_buf) override
 
std::string & string ()
 
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
 
void printf (const char *,...) ATTRIBUTE_PRINTF(2
 
void void putstr (const char *str, int quoter)
 
void putstrn (const char *str, int n, int quoter)
 
int 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 ()
 

Private Attributes

std::string m_string
 

Detailed Description

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

Constructor & Destructor Documentation

◆ string_file()

string_file::string_file ( )
inline

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

◆ ~string_file()

string_file::~string_file ( )
override

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

Member Function Documentation

◆ c_str()

const char* string_file::c_str ( ) const
inline

◆ clear()

void string_file::clear ( )
inline

◆ data()

const char* string_file::data ( ) const
inline

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

References m_string.

Referenced by mi_ui_out::put().

◆ empty()

bool string_file::empty ( ) const
inline

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

References m_string.

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

◆ read()

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

Reimplemented from ui_file.

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

References gdb_assert_not_reached.

◆ size()

size_t string_file::size ( ) const
inline

◆ string()

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

◆ 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 144 of file ui-file.h.

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


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