Ghidra Decompiler Analysis Engine
Public Member Functions | List of all members
IfaceCommandDummy Class Reference

A dummy command used during parsing. More...

#include <interface.hh>

Inheritance diagram for IfaceCommandDummy:
Inheritance graph
[legend]
Collaboration diagram for IfaceCommandDummy:
Collaboration graph
[legend]

Public Member Functions

virtual void setData (IfaceStatus *root, IfaceData *data)
 Associate a specific data object with this command. More...
 
virtual void execute (istream &s)
 
virtual string getModule (void) const
 Get the formal module name to which this command belongs. More...
 
virtual IfaceDatacreateData (void)
 Create a specialized data object for this command (and its module) More...
 
- Public Member Functions inherited from IfaceCommand
void addWord (const string &temp)
 Add a token to the command line string associated with this command. More...
 
void addWords (const vector< string > &wordlist)
 Add words to the associated command line string.
 
void commandString (string &res) const
 Get the complete command line string. More...
 
int4 compare (const IfaceCommand &op2) const
 Order two commands by their command line strings. More...
 

Detailed Description

A dummy command used during parsing.

Member Function Documentation

◆ createData()

virtual IfaceData* IfaceCommandDummy::createData ( void  )
inlinevirtual

Create a specialized data object for this command (and its module)

This method is only called once per module

Returns
the newly created data object for the module

Implements IfaceCommand.

◆ execute()

virtual void IfaceCommandDummy::execute ( istream &  s)
inlinevirtual

Execute this command. Additional state can be read from the given command line stream. Otherwise, the command gets its data from its registered IfaceData object

Parameters
sis the input stream from the command line

Implements IfaceCommand.

◆ getModule()

virtual string IfaceCommandDummy::getModule ( void  ) const
inlinevirtual

Get the formal module name to which this command belongs.

Commands in the same module share data through their registered IfaceData object

Returns
the formal module name

Implements IfaceCommand.

◆ setData()

virtual void IfaceCommandDummy::setData ( IfaceStatus root,
IfaceData data 
)
inlinevirtual

Associate a specific data object with this command.

Parameters
rootis the interface object this command is registered with
datais the data object the command should use

Implements IfaceCommand.


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