Loading...
Searching...
No Matches
BinaryNinja::LineFormatter Class Referenceabstract

Public Member Functions

 LineFormatter (const std::string &name)
 
 LineFormatter (BNLineFormatter *formatter)
 
virtual std::vector< DisassemblyTextLineFormatLines (const std::vector< DisassemblyTextLine > &lines, const LineFormatterSettings &settings)=0
 Reformats the given list of lines.
 
- Public Member Functions inherited from BinaryNinja::StaticCoreRefCountObject< BNLineFormatter >
 StaticCoreRefCountObject ()
 
virtual ~StaticCoreRefCountObject ()
 
BNLineFormatterGetObject () const
 
void AddRef ()
 
void Release ()
 
void AddRefForRegistration ()
 
void AddRefForCallback ()
 
void ReleaseForCallback ()
 

Static Public Member Functions

static void Register (LineFormatter *formatter)
 Registers the line formatter.
 
static std::vector< Ref< LineFormatter > > GetList ()
 
static Ref< LineFormatterGetByName (const std::string &name)
 
static Ref< LineFormatterGetDefault ()
 
- Static Public Member Functions inherited from BinaryNinja::StaticCoreRefCountObject< BNLineFormatter >
static BNLineFormatterGetObject (StaticCoreRefCountObject *obj)
 

Additional Inherited Members

- Public Attributes inherited from BinaryNinja::StaticCoreRefCountObject< BNLineFormatter >
std::atomic< int > m_refs
 
BNLineFormatterm_object
 

Constructor & Destructor Documentation

◆ LineFormatter() [1/2]

BinaryNinja::LineFormatter::LineFormatter ( const std::string & name)

◆ LineFormatter() [2/2]

LineFormatter::LineFormatter ( BNLineFormatter * formatter)

Member Function Documentation

◆ Register()

void LineFormatter::Register ( LineFormatter * formatter)
static

Registers the line formatter.

Parameters
formatterThe line formatter to register.

◆ GetList()

vector< Ref< LineFormatter > > LineFormatter::GetList ( )
static

◆ GetByName()

Ref< LineFormatter > LineFormatter::GetByName ( const std::string & name)
static

◆ GetDefault()

Ref< LineFormatter > LineFormatter::GetDefault ( )
static

◆ FormatLines()

virtual std::vector< DisassemblyTextLine > BinaryNinja::LineFormatter::FormatLines ( const std::vector< DisassemblyTextLine > & lines,
const LineFormatterSettings & settings )
pure virtual

Reformats the given list of lines.

Returns a new list of lines containing the reformatted code.

Parameters
linesThe lines to reformat.
settingsThe settings for reformatting.
Returns
A new list of reformatted lines.

Implemented in BinaryNinja::CoreLineFormatter.