KVIrc  4.9.2
DeveloperAPIs
Public Member Functions | Protected Attributes | List of all members
KviKvsTreeNodeSpecialCommandClass Class Reference

#include <KviKvsTreeNodeSpecialCommandClass.h>

+ Inheritance diagram for KviKvsTreeNodeSpecialCommandClass:

Public Member Functions

void addFunctionDefinition (KviKvsTreeNodeSpecialCommandClassFunctionDefinition *pDef)
 
virtual void contextDescription (QString &szBuffer)
 Sets the buffer as Instruction. More...
 
virtual void dump (const char *prefix)
 Dumps the instructions tree. More...
 
virtual bool execute (KviKvsRunTimeContext *c)
 This is the main entry point to the tree visit. More...
 
 KviKvsTreeNodeSpecialCommandClass (const QChar *pLocation, KviKvsTreeNodeDataList *pParams)
 
virtual ~KviKvsTreeNodeSpecialCommandClass ()
 
- Public Member Functions inherited from KviKvsTreeNodeSpecialCommand
 KviKvsTreeNodeSpecialCommand (const QChar *pLocation, const QString &szCmdName)
 
 ~KviKvsTreeNodeSpecialCommand ()
 
- Public Member Functions inherited from KviKvsTreeNodeCommand
const QString & commandName ()
 
void dumpSwitchList (const char *prefix)
 
 KviKvsTreeNodeCommand (const QChar *pLocation, const QString &szCmdName)
 
 ~KviKvsTreeNodeCommand ()
 
- Public Member Functions inherited from KviKvsTreeNodeInstruction
 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...
 
KviKvsTreeNodeparent ()
 Returns the parent object. More...
 
void setParent (KviKvsTreeNode *p)
 Sets the parent object. More...
 
virtual ~KviKvsTreeNode ()
 Destroys the treenode object. More...
 

Protected Attributes

KviPointerList
< KviKvsTreeNodeSpecialCommandClassFunctionDefinition > * 
m_pFunctions
 
KviKvsTreeNodeDataListm_pParams
 
- Protected Attributes inherited from KviKvsTreeNodeCommand
KviKvsTreeNodeSwitchListm_pSwitches
 
QString m_szCmdName
 
- Protected Attributes inherited from KviKvsTreeNode
const QChar * m_pLocation
 
KviKvsTreeNodem_pParent
 

Additional Inherited Members

- Protected Member Functions inherited from KviKvsTreeNodeCommand
void setSwitchList (KviKvsTreeNodeSwitchList *sw)
 
- Protected Member Functions inherited from KviKvsTreeNode
void setLocation (const QChar *pLocation)
 Sets the location char. More...
 

Constructor & Destructor Documentation

KviKvsTreeNodeSpecialCommandClass::KviKvsTreeNodeSpecialCommandClass ( const QChar *  pLocation,
KviKvsTreeNodeDataList pParams 
)
KviKvsTreeNodeSpecialCommandClass::~KviKvsTreeNodeSpecialCommandClass ( )
virtual

References m_pFunctions, and m_pParams.

Member Function Documentation

void KviKvsTreeNodeSpecialCommandClass::addFunctionDefinition ( KviKvsTreeNodeSpecialCommandClassFunctionDefinition pDef)
void KviKvsTreeNodeSpecialCommandClass::contextDescription ( QString &  szBuffer)
virtual

Sets the buffer as Instruction.

Parameters
szBufferThe buffer :)
Returns
void

Reimplemented from KviKvsTreeNodeSpecialCommand.

void KviKvsTreeNodeSpecialCommandClass::dump ( const char *  prefix)
virtual

Dumps the instructions tree.

Parameters
prefixThe prefix of the instruction
Returns
void

Reimplemented from KviKvsTreeNodeSpecialCommand.

References d, KviKvsTreeNodeDataList::dump(), KviPointerList< T >::first(), m_pFunctions, m_pParams, and KviPointerList< T >::next().

bool KviKvsTreeNodeSpecialCommandClass::execute ( KviKvsRunTimeContext c)
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().

Parameters
cThe source context
Returns
bool

Implements KviKvsTreeNodeInstruction.

References __tr2qs_ctx(), KviKvsVariant::asString(), d, KviQString::equalCI(), KviKvsRunTimeContext::error(), KviKvsTreeNodeDataList::evaluate(), KviKvsVariantList::first(), KviPointerList< T >::first(), KviKvsKernel::instance(), l, KviKvsObjectController::lookupClass(), m_pFunctions, m_pParams, KviKvsObjectClass::name(), KviKvsVariantList::next(), KviPointerList< T >::next(), KviKvsKernel::objectController(), KviKvsObjectClass::parentClass(), and KviKvsObjectClass::registerFunctionHandler().

Member Data Documentation

KviPointerList<KviKvsTreeNodeSpecialCommandClassFunctionDefinition>* KviKvsTreeNodeSpecialCommandClass::m_pFunctions
protected
KviKvsTreeNodeDataList* KviKvsTreeNodeSpecialCommandClass::m_pParams
protected

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