![]() |
KVIrc 5.2.0
Developer APIs
|
#include <KviKvsTreeNodeSpecialCommandSwitch.h>
Public Member Functions | |
void | addLabel (KviKvsTreeNodeSpecialCommandSwitchLabel *l) |
virtual void | contextDescription (QString &szBuffer) |
Sets the buffer as Instruction. | |
virtual void | dump (const char *prefix) |
Dumps the instructions tree. | |
virtual bool | execute (KviKvsRunTimeContext *c) |
This is the main entry point to the tree visit. | |
bool | isEmpty () |
KviKvsTreeNodeSpecialCommandSwitch (const QChar *pLocation, KviKvsTreeNodeExpression *e) | |
~KviKvsTreeNodeSpecialCommandSwitch () | |
![]() | |
KviKvsTreeNodeSpecialCommand (const QChar *pLocation, const QString &szCmdName) | |
~KviKvsTreeNodeSpecialCommand () | |
![]() | |
const QString & | commandName () |
void | dumpSwitchList (const char *prefix) |
KviKvsTreeNodeCommand (const QChar *pLocation, const QString &szCmdName) | |
~KviKvsTreeNodeCommand () | |
![]() | |
KviKvsTreeNodeInstruction (const QChar *pLocation) | |
Constructs the treenode instruction object. | |
~KviKvsTreeNodeInstruction () | |
Destroys the treenode instruction object. | |
![]() | |
KviKvsTreeNode (const QChar *pLocation) | |
Constructs the treenode object. | |
const QChar * | location () |
Returns the location char. | |
KviKvsTreeNode * | parent () |
Returns the parent object. | |
void | setParent (KviKvsTreeNode *p) |
Sets the parent object. | |
virtual | ~KviKvsTreeNode () |
Destroys the treenode object. | |
Private Attributes | |
KviKvsTreeNodeExpression * | m_pExpression |
KviPointerList< KviKvsTreeNodeSpecialCommandSwitchLabel > * | m_pLabels |
Additional Inherited Members | |
![]() | |
void | setSwitchList (KviKvsTreeNodeSwitchList *sw) |
![]() | |
void | setLocation (const QChar *pLocation) |
Sets the location char. | |
![]() | |
KviKvsTreeNodeSwitchList * | m_pSwitches |
QString | m_szCmdName |
![]() | |
const QChar * | m_pLocation |
KviKvsTreeNode * | m_pParent |
KviKvsTreeNodeSpecialCommandSwitch::KviKvsTreeNodeSpecialCommandSwitch | ( | const QChar * | pLocation, |
KviKvsTreeNodeExpression * | e | ||
) |
References e, m_pExpression, m_pLabels, KviPointerList< T >::setAutoDelete(), and KviKvsTreeNode::setParent().
KviKvsTreeNodeSpecialCommandSwitch::~KviKvsTreeNodeSpecialCommandSwitch | ( | ) |
References m_pExpression, and m_pLabels.
void KviKvsTreeNodeSpecialCommandSwitch::addLabel | ( | KviKvsTreeNodeSpecialCommandSwitchLabel * | l | ) |
References KviPointerList< T >::append(), l, and m_pLabels.
Referenced by KviKvsParser::parseSpecialCommandSwitch().
|
virtual |
Sets the buffer as Instruction.
szBuffer | The buffer :) |
Reimplemented from KviKvsTreeNodeSpecialCommand.
References szBuffer.
|
virtual |
Dumps the instructions tree.
prefix | The prefix of the instruction |
Reimplemented from KviKvsTreeNodeSpecialCommand.
References KviKvsTreeNodeExpression::dump(), KviPointerList< T >::first(), l, m_pExpression, m_pLabels, and KviPointerList< T >::next().
|
virtual |
This is the main entry point to the tree visit.
It returns false when the tree visiting has to be stopped and returns true when it has been successfully completed. A false return value may signal an error but is also used by break, halt, return and similar. The error condition is signaled by KviKvsRunTimeContext::error().
c | The source context |
Implements KviKvsTreeNodeInstruction.
References KviKvsRunTimeContext::breakPending(), KviKvsRunTimeContext::error(), KviKvsTreeNodeSwitchList::evaluate(), KviKvsTreeNodeData::evaluateReadOnly(), KviKvsSwitchList::find(), KviPointerList< T >::first(), KviKvsRunTimeContext::handleBreak(), l, m_pExpression, m_pLabels, KviKvsTreeNodeCommand::m_pSwitches, KviPointerList< T >::next(), and v.
|
inline |
References KviPointerList< T >::isEmpty().
Referenced by KviKvsParser::parseSpecialCommandSwitch().
|
private |
Referenced by dump(), execute(), KviKvsTreeNodeSpecialCommandSwitch(), and ~KviKvsTreeNodeSpecialCommandSwitch().
|
private |
Referenced by addLabel(), dump(), execute(), KviKvsTreeNodeSpecialCommandSwitch(), and ~KviKvsTreeNodeSpecialCommandSwitch().