IDA C++ SDK 9.2
Loading...
Searching...
No Matches
qstring_printer_t Struct Reference

Helper class to convert cfunc_t into a text string. More...

#include <hexrays.hpp>

Inheritance diagram for qstring_printer_t:
vc_printer_t vd_printer_t

Public Member Functions

 qstring_printer_t (const cfunc_t *f, qstring &_s, bool tags)
 Constructor.
 AS_PRINTF (3, 4) int hexapi print(int indent
 Print.
Public Member Functions inherited from vc_printer_t
 vc_printer_t (const cfunc_t *f)
 Constructor.
virtual bool idaapi oneliner () const newapi
 Are we generating one-line text representation?
Public Member Functions inherited from vd_printer_t
 AS_PRINTF (3, 4) virtual int hexapi print(int indent
 Print.

Public Attributes

bool with_tags
 Generate output with color tags.
qstrings
 Reference to the output string.
const char * format
const char override
Public Attributes inherited from vc_printer_t
const cfunc_tfunc
 cfunc_t to generate text for
char lastchar = 0
 internal: last printed character
Public Attributes inherited from vd_printer_t
qstring tmpbuf
int hdrlines = 0
 number of header lines (prototype+typedef+lvars) valid at the end of print process
const char * format

Detailed Description

Helper class to convert cfunc_t into a text string.

Constructor & Destructor Documentation

◆ qstring_printer_t()

qstring_printer_t::qstring_printer_t ( const cfunc_t * f,
qstring & _s,
bool tags )
inline

Constructor.

Member Function Documentation

◆ AS_PRINTF()

qstring_printer_t::AS_PRINTF ( 3 ,
4  )

Print.

This function is called to generate a portion of the output text. The output text may contain color codes.

Parameters
indentnumber of spaces to generate as prefix
formatprintf-style format specifier
Returns
length of the printed string

Member Data Documentation

◆ with_tags

bool qstring_printer_t::with_tags

Generate output with color tags.

◆ s

qstring& qstring_printer_t::s

Reference to the output string.

◆ format

const char* qstring_printer_t::format

◆ override

const char qstring_printer_t::override

The documentation for this struct was generated from the following file: