Registration point and dispatcher for commands sent to the decompiler.
More...
#include <ghidra_process.hh>
|
string | name |
| Identifier for capability and associated commands.
|
|
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.
◆ readCommand()
int4 GhidraCapability::readCommand |
( |
istream & |
sin, |
|
|
ostream & |
out |
|
) |
| |
|
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.
- Parameters
-
sin | is the input stream from the client |
out | is the output stream to the client |
- Returns
- the result code of the command
The documentation for this class was generated from the following files: