Ghidra Decompiler Analysis Engine
|
A console command run as part of a test sequence. More...
#include <testfunction.hh>
Public Member Functions | |
ConsoleCommands (void) | |
Constructor. | |
void | reset (void) |
Reset console for a new program. | |
virtual bool | isStreamFinished (void) const |
Return true if the current stream is finished. | |
void | restoreXml (const Element *el) |
Reconstruct the command from an XML tag. More... | |
![]() | |
IfaceStatus (const string &prmpt, ostream &os, int4 mxhist=10) | |
Constructor. More... | |
virtual | ~IfaceStatus (void) |
Destructor. | |
virtual void | pushScript (const string &filename, const string &newprompt) |
Provide a new script file to execute, with an associated command prompt. More... | |
virtual void | popScript (void) |
Return to processing the parent stream. More... | |
void | reset (void) |
Pop any existing script streams and return to processing from the base stream. | |
void | registerCom (IfaceCommand *fptr, const char *nm1, const char *nm2=(const char *) 0, const char *nm3=(const char *) 0, const char *nm4=(const char *) 0, const char *nm5=(const char *) 0) |
Register a command with this interface. More... | |
IfaceData * | getData (const string &nm) const |
Get data associated with a IfaceCommand module. More... | |
bool | runCommand (void) |
Run the next command. More... | |
void | getHistory (string &line, int4 i) const |
Get the i-th command line from history. More... | |
void | evaluateError (void) |
Adjust which stream to process based on last error. | |
Additional Inherited Members | |
![]() | |
static void | wordsToString (string &res, const vector< string > &list) |
Concatenate tokens. More... | |
![]() | |
bool | done |
Set to true (by a command) to indicate processing is finished. | |
ostream * | optr |
Where to put command line output. | |
ostream * | fileoptr |
Where to put bulk output. | |
![]() | |
int4 | expandCom (vector< string > &expand, istream &s, vector< IfaceCommand * >::const_iterator &first, vector< IfaceCommand * >::const_iterator &last) |
Expand tokens from the given input stream to a full command. More... | |
![]() | |
bool | inerror |
Set to true if last command did not succeed. | |
vector< IfaceCommand * > | comlist |
List of registered commands. | |
map< string, IfaceData * > | datamap |
Data associated with particular modules. | |
A console command run as part of a test sequence.
void ConsoleCommands::restoreXml | ( | const Element * | el | ) |
Reconstruct the command from an XML tag.
el | is the root <script> tag |