Ghidra 11.3.2
Ghidra internal decompiler documentation.
Loading...
Searching...
No Matches
ghidra::SetSignatureSettings Class Reference

Command to provide the global settings used by the decompiler process during feature/signature generation. More...

#include <signature_ghidra.hh>

Inheritance diagram for ghidra::SetSignatureSettings:
[legend]
Collaboration diagram for ghidra::SetSignatureSettings:
[legend]

Public Member Functions

virtual void rawAction (void)
 Perform the action of the command.
 
- Public Member Functions inherited from ghidra::GhidraCommand
 GhidraCommand (void)
 Construct given i/o streams.
 
virtual ~GhidraCommand (void)
 Destructor.
 
int4 doit (void)
 Configure and execute the command, then send back results.
 

Private Member Functions

virtual void loadParameters (void)
 Read parameters directing command execution.
 

Private Attributes

uint4 settings
 Opaque settings value being requested.
 

Additional Inherited Members

- Protected Member Functions inherited from ghidra::GhidraCommand
virtual void sendResult (void)
 Send results of the command (if any) back to the Ghidra client.
 
- Protected Attributes inherited from ghidra::GhidraCommand
istream & sin
 The input stream from the Ghidra client.
 
ostream & sout
 The output stream to the Ghidra client.
 
ArchitectureGhidraghidra
 The Architecture on which to perform the command.
 
int4 status
 Meta-command to system (0=wait for next command, 1=terminate process)
 

Detailed Description

Command to provide the global settings used by the decompiler process during feature/signature generation.

The command expects to receive an opaque integer value encoding the state of boolean properties affecting feature generation. The command returns 't' indicating a valid setting was received or 'f' for an invalid setting.

Member Function Documentation

◆ loadParameters()

void ghidra::SetSignatureSettings::loadParameters ( void  )
privatevirtual

Read parameters directing command execution.

This method reads an id selecting the Architecture to act on, but it can be overloaded to read any set of data from the Ghidra client to configure how the command is executed. Individual parameters are read using the method protocol.

Reimplemented from ghidra::GhidraCommand.

References ghidra::GhidraCommand::loadParameters(), ghidra::ArchitectureGhidra::readStringStream(), settings, and ghidra::GhidraCommand::sin.

◆ rawAction()

void ghidra::SetSignatureSettings::rawAction ( void  )
virtual

Perform the action of the command.

Configuration is assumed to have happened, and this object can immediately begin examining and manipulating data under the active Architecture object to perform the command.

Implements ghidra::GhidraCommand.

References ghidra::SigManager::setSettings(), settings, ghidra::GhidraCommand::sout, ghidra::GraphSigManager::testSettings(), and ghidra::ArchitectureGhidra::writeStringStream().


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