decompiler  1.0.0
Classes | Functions
interface.hh File Reference

Classes and utilities for a generic command-line interface. More...

#include "capability.hh"
#include <map>
#include <algorithm>
#include <fstream>
#include <sstream>
#include <cstdio>

Classes

struct  ghidra::IfaceError
 An exception specific to the command line interface. More...
 
struct  ghidra::IfaceParseError
 An exception describing a parsing error in a command line. More...
 
struct  ghidra::IfaceExecutionError
 An exception throw during the execution of a command. More...
 
class  ghidra::IfaceData
 Data specialized for a particular command module. More...
 
class  ghidra::IfaceCommand
 A command that can be executed from the command line. More...
 
class  ghidra::IfaceCommandDummy
 A dummy command used during parsing. More...
 
class  ghidra::IfaceCapability
 Groups of console commands that are discovered by the loader. More...
 
class  ghidra::IfaceStatus
 A generic console mode interface and command executor. More...
 
class  ghidra::IfaceBaseCommand
 A root class for a basic set of commands. More...
 
class  ghidra::IfcQuit
 Quit command to terminate processing from the given interface. More...
 
class  ghidra::IfcHistory
 History command to list the most recent successful commands. More...
 
class  ghidra::IfcOpenfile
 Open file command to redirect bulk output to a specific file stream. More...
 
class  ghidra::IfcOpenfileAppend
 Open file command directing bulk output to be appended to a specific file. More...
 
class  ghidra::IfcClosefile
 Close command, closing the current bulk output file. More...
 
class  ghidra::IfcEcho
 Echo command to echo the current command line to the bulk output stream. More...
 

Functions

bool ghidra::compare_ifacecommand (const IfaceCommand *a, const IfaceCommand *b)
 Compare to commands as pointers. More...
 

Detailed Description

Classes and utilities for a generic command-line interface.

Function Documentation

◆ compare_ifacecommand()

bool ghidra::compare_ifacecommand ( const IfaceCommand a,
const IfaceCommand b 
)
inline

Compare to commands as pointers.

Parameters
ais a pointer to the first command
bis a pointer to the second command
Returns
true if the first pointer is ordered before the second

References ghidra::IfaceCommand::compare(), and ghidra::compare_ifacecommand().

Referenced by ghidra::compare_ifacecommand(), ghidra::IfaceStatus::restrictCom(), and ghidra::IfaceStatus::runCommand().