Ghidra Decompiler Analysis Engine
Classes | Functions
interface.hh File Reference

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

#include "capability.hh"
#include <string>
#include <map>
#include <algorithm>
#include <fstream>
#include <sstream>
#include <cstdio>
Include dependency graph for interface.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

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

Functions

bool 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 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