decompiler
1.0.0
|
Registration point and dispatcher for commands sent to the decompiler. More...
#include <ghidra_process.hh>
Public Member Functions | |
const string & | getName (void) const |
Get the capability name. | |
Public Member Functions inherited from ghidra::CapabilityPoint | |
virtual | ~CapabilityPoint (void) |
Destructor. | |
virtual void | initialize (void)=0 |
Complete initialization of an extension point. More... | |
Static Public Member Functions | |
static int4 | readCommand (istream &sin, ostream &out) |
Dispatch a Ghidra command. More... | |
static void | shutDown (void) |
Release all GhidraCommand resources. | |
Static Public Member Functions inherited from ghidra::CapabilityPoint | |
static void | initializeAll (void) |
Finish initialization for all extension points. More... | |
Protected Attributes | |
string | name |
Identifier for capability and associated commands. | |
Static Protected Attributes | |
static map< string, GhidraCommand * > | commandmap |
The central map from name to Ghidra command. | |
Additional Inherited Members | |
Protected Member Functions inherited from ghidra::CapabilityPoint | |
CapabilityPoint (void) | |
Construct extension capability exactly once. More... | |
Registration point and dispatcher for commands sent to the decompiler.
This is the base class for command capabilities (sets of commands). All sets register their commands with a static commandmap. This class provides the method readCommand(), which does the work of parsing a command from the stream and dispatching to the correct GhidraCommand object.
|
static |
Dispatch a Ghidra command.
A command is read from the Ghidra client. The matching GhidraCommand object is looked up in the commandmap, and control is handed over to the command, with the i/o streams. The command must be issued following the proper message protocol (see ArchitectureGhidra::readToAnyBurst) or an exception is thrown.
sin | is the input stream from the client |
out | is the output stream to the client |
References ghidra::ArchitectureGhidra::readStringStream(), and ghidra::ArchitectureGhidra::readToAnyBurst().
Referenced by getName(), and ghidra::GhidraDecompCapability::initialize().