KVIrc
4.9.2
DeveloperAPIs
|
#include <KviKvsTreeNodeCommand.h>
Public Member Functions | |
const QString & | commandName () |
virtual void | contextDescription (QString &szBuffer) |
Sets the buffer as Instruction. More... | |
virtual void | dump (const char *prefix) |
Dumps the instructions tree. More... | |
void | dumpSwitchList (const char *prefix) |
KviKvsTreeNodeCommand (const QChar *pLocation, const QString &szCmdName) | |
~KviKvsTreeNodeCommand () | |
Public Member Functions inherited from KviKvsTreeNodeInstruction | |
virtual bool | execute (KviKvsRunTimeContext *c)=0 |
This is the main entry point to the tree visit. More... | |
KviKvsTreeNodeInstruction (const QChar *pLocation) | |
Constructs the treenode instruction object. More... | |
~KviKvsTreeNodeInstruction () | |
Destroys the treenode instruction object. More... | |
Public Member Functions inherited from KviKvsTreeNode | |
KviKvsTreeNode (const QChar *pLocation) | |
Constructs the treenode object. More... | |
const QChar * | location () |
Returns the location char. More... | |
KviKvsTreeNode * | parent () |
Returns the parent object. More... | |
void | setParent (KviKvsTreeNode *p) |
Sets the parent object. More... | |
virtual | ~KviKvsTreeNode () |
Destroys the treenode object. More... | |
Protected Member Functions | |
void | setSwitchList (KviKvsTreeNodeSwitchList *sw) |
Protected Member Functions inherited from KviKvsTreeNode | |
void | setLocation (const QChar *pLocation) |
Sets the location char. More... | |
Protected Attributes | |
KviKvsTreeNodeSwitchList * | m_pSwitches |
QString | m_szCmdName |
Protected Attributes inherited from KviKvsTreeNode | |
const QChar * | m_pLocation |
KviKvsTreeNode * | m_pParent |
Friends | |
class | KviKvsParser |
KviKvsTreeNodeCommand::KviKvsTreeNodeCommand | ( | const QChar * | pLocation, |
const QString & | szCmdName | ||
) |
References m_pSwitches, and m_szCmdName.
KviKvsTreeNodeCommand::~KviKvsTreeNodeCommand | ( | ) |
References m_pSwitches.
|
inline |
Referenced by KviKvsTreeNodeRebindingSwitch::commandName().
|
virtual |
Sets the buffer as Instruction.
szBuffer | The buffer :) |
Reimplemented from KviKvsTreeNodeInstruction.
Reimplemented in KviKvsTreeNodeSpecialCommandDefpopup, KviKvsTreeNodeSpecialCommandSwitch, KviKvsTreeNodeSpecialCommandClass, KviKvsTreeNodeAliasSimpleCommand, KviKvsTreeNodeCoreCallbackCommand, KviKvsTreeNodeSpecialCommandFor, KviKvsTreeNodeSpecialCommandForeach, KviKvsTreeNodeSpecialCommandIf, KviKvsTreeNodeCommandWithParameters, KviKvsTreeNodeModuleCallbackCommand, KviKvsTreeNodeRebindingSwitch, KviKvsTreeNodeSpecialCommandDo, KviKvsTreeNodeSpecialCommandWhile, KviKvsTreeNodeCallbackCommand, KviKvsTreeNodeCoreSimpleCommand, KviKvsTreeNodeModuleSimpleCommand, KviKvsTreeNodeSpecialCommandUnset, KviKvsTreeNodeSpecialCommandBreak, KviKvsTreeNodeSpecialCommandContinue, KviKvsTreeNodeSimpleCommand, and KviKvsTreeNodeSpecialCommand.
References m_szCmdName.
|
virtual |
Dumps the instructions tree.
prefix | The prefix of the instruction |
Reimplemented from KviKvsTreeNodeInstruction.
Reimplemented in KviKvsTreeNodeSpecialCommandDefpopup, KviKvsTreeNodeSpecialCommandSwitch, KviKvsTreeNodeAliasSimpleCommand, KviKvsTreeNodeSpecialCommandClass, KviKvsTreeNodeCoreCallbackCommand, KviKvsTreeNodeSpecialCommandFor, KviKvsTreeNodeSpecialCommandForeach, KviKvsTreeNodeSpecialCommandIf, KviKvsTreeNodeCommandWithParameters, KviKvsTreeNodeModuleCallbackCommand, KviKvsTreeNodeRebindingSwitch, KviKvsTreeNodeSpecialCommandDo, KviKvsTreeNodeSpecialCommandWhile, KviKvsTreeNodeCallbackCommand, KviKvsTreeNodeCoreSimpleCommand, KviKvsTreeNodeModuleSimpleCommand, KviKvsTreeNodeSpecialCommandUnset, KviKvsTreeNodeSpecialCommandBreak, KviKvsTreeNodeSpecialCommandContinue, KviKvsTreeNodeSimpleCommand, and KviKvsTreeNodeSpecialCommand.
References dumpSwitchList(), and m_szCmdName.
Referenced by KviKvsTreeNodeRebindingSwitch::dump().
void KviKvsTreeNodeCommand::dumpSwitchList | ( | const char * | prefix | ) |
References KviKvsTreeNodeSwitchList::dump(), and m_pSwitches.
Referenced by KviKvsTreeNodeSpecialCommand::dump(), KviKvsTreeNodeSimpleCommand::dump(), KviKvsTreeNodeModuleSimpleCommand::dump(), KviKvsTreeNodeCallbackCommand::dump(), KviKvsTreeNodeCoreSimpleCommand::dump(), KviKvsTreeNodeCommandWithParameters::dump(), KviKvsTreeNodeModuleCallbackCommand::dump(), dump(), KviKvsTreeNodeCoreCallbackCommand::dump(), and KviKvsTreeNodeAliasSimpleCommand::dump().
|
protected |
References m_pSwitches, and KviKvsTreeNode::setParent().
Referenced by KviKvsParser::parseCommand().
|
friend |
|
protected |
Referenced by dumpSwitchList(), KviKvsTreeNodeModuleSimpleCommand::execute(), KviKvsTreeNodeCoreSimpleCommand::execute(), KviKvsTreeNodeModuleCallbackCommand::execute(), KviKvsTreeNodeSpecialCommandForeach::execute(), KviKvsTreeNodeCoreCallbackCommand::execute(), KviKvsTreeNodeAliasSimpleCommand::execute(), KviKvsTreeNodeSpecialCommandSwitch::execute(), KviKvsTreeNodeSpecialCommandDefpopup::execute(), KviKvsTreeNodeCommand(), setSwitchList(), and ~KviKvsTreeNodeCommand().
|
protected |
Referenced by KviKvsTreeNodeSpecialCommand::contextDescription(), KviKvsTreeNodeSimpleCommand::contextDescription(), KviKvsTreeNodeCallbackCommand::contextDescription(), KviKvsTreeNodeModuleSimpleCommand::contextDescription(), KviKvsTreeNodeCoreSimpleCommand::contextDescription(), KviKvsTreeNodeCommandWithParameters::contextDescription(), KviKvsTreeNodeModuleCallbackCommand::contextDescription(), KviKvsTreeNodeCoreCallbackCommand::contextDescription(), contextDescription(), KviKvsTreeNodeAliasSimpleCommand::contextDescription(), KviKvsTreeNodeSpecialCommand::dump(), KviKvsTreeNodeSimpleCommand::dump(), KviKvsTreeNodeCallbackCommand::dump(), KviKvsTreeNodeModuleSimpleCommand::dump(), KviKvsTreeNodeCoreSimpleCommand::dump(), KviKvsTreeNodeModuleCallbackCommand::dump(), KviKvsTreeNodeCommandWithParameters::dump(), dump(), KviKvsTreeNodeCoreCallbackCommand::dump(), KviKvsTreeNodeAliasSimpleCommand::dump(), KviKvsTreeNodeModuleSimpleCommand::execute(), KviKvsTreeNodeModuleCallbackCommand::execute(), KviKvsTreeNodeAliasSimpleCommand::execute(), and KviKvsTreeNodeCommand().