Latest available version: IDA and decompilers v8.4.240320sp1 see all releases
Hex-Rays logo State-of-the-art binary code analysis tools
email icon
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. More...
 
int print (int indent, const char *format,...) override
 
- Public Member Functions inherited from vc_printer_t
 vc_printer_t (const cfunc_t *f)
 Constructor. More...
 
virtual bool oneliner () const newapi
 Are we generating one-line text representation? More...
 
virtual int print (int indent, const char *format,...)
 

Public Attributes

bool with_tags
 Generate output with color tags. More...
 
qstring & s
 Reference to the output string. More...
 
- Public Attributes inherited from vc_printer_t
const cfunc_tfunc
 cfunc_t to generate text for More...
 
char lastchar = 0
 internal: last printed character More...
 
- 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 More...
 

Detailed Description

Helper class to convert cfunc_t into a text string.

Definition at line 893 of file hexrays.hpp.

Constructor & Destructor Documentation

◆ qstring_printer_t()

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

Constructor.

Definition at line 898 of file hexrays.hpp.

Member Function Documentation

◆ print()

int qstring_printer_t::print ( int  indent,
const char *  format,
  ... 
)
overridevirtual

Reimplemented from vd_printer_t.

Definition at line 9876 of file hexrays.hpp.

Member Data Documentation

◆ s

qstring& qstring_printer_t::s

Reference to the output string.

Definition at line 896 of file hexrays.hpp.

◆ with_tags

bool qstring_printer_t::with_tags

Generate output with color tags.

Definition at line 895 of file hexrays.hpp.