SourceForge.net Logo
DebugCommand Class Referenceabstract

#include <InteractiveDebugger.hpp>

Public Member Functions

virtual ~DebugCommand ()
 
virtual const char * getCommandName () const
 
virtual const char * getCommandNameCompat () const
 
virtual const char * getBriefHelp () const
 
virtual const char * getMoreHelp () const
 
virtual bool matches (const std::string &command) const
 
virtual void execute (InputParser::Args &args, BaseInteractiveDebugger &env)=0
 

Static Public Member Functions

static bool matches (const std::string &command, const std::string &toMatch)
 

Protected Member Functions

 DebugCommand (const char *name, const char *compatName, const char *briefHelp, const char *moreHelp)
 

Protected Attributes

const char * name_
 
const char * compatName_
 
const char * briefHelp_
 
const char * moreHelp_
 

Constructor & Destructor Documentation

◆ ~DebugCommand()

virtual DebugCommand::~DebugCommand ( )
inlinevirtual

◆ DebugCommand()

DebugCommand::DebugCommand ( const char * name,
const char * compatName,
const char * briefHelp,
const char * moreHelp )
inlineprotected

References briefHelp_, compatName_, moreHelp_, and name_.

Member Function Documentation

◆ execute()

virtual void DebugCommand::execute ( InputParser::Args & args,
BaseInteractiveDebugger & env )
pure virtual

◆ getBriefHelp()

virtual const char * DebugCommand::getBriefHelp ( ) const
inlinevirtual

References briefHelp_.

◆ getCommandName()

virtual const char * DebugCommand::getCommandName ( ) const
inlinevirtual

References name_.

◆ getCommandNameCompat()

virtual const char * DebugCommand::getCommandNameCompat ( ) const
inlinevirtual

References compatName_.

◆ getMoreHelp()

virtual const char * DebugCommand::getMoreHelp ( ) const
inlinevirtual

References moreHelp_.

◆ matches() [1/2]

virtual bool DebugCommand::matches ( const std::string & command) const
virtual

◆ matches() [2/2]

static bool DebugCommand::matches ( const std::string & command,
const std::string & toMatch )
static

Member Data Documentation

◆ briefHelp_

const char* DebugCommand::briefHelp_
protected

Referenced by DebugCommand(), and getBriefHelp().

◆ compatName_

const char* DebugCommand::compatName_
protected

◆ moreHelp_

const char* DebugCommand::moreHelp_
protected

Referenced by DebugCommand(), and getMoreHelp().

◆ name_

const char* DebugCommand::name_
protected

Referenced by DebugCommand(), and getCommandName().


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