00001 /* 00002 Copyright 1996-2001 00003 Simon Whiteside 00004 00005 $Id: skTreeNodeObjectEnumerator_h-source.html,v 1.19 2001/11/05 19:22:33 sdw Exp $ 00006 */ 00007 #ifndef TREENODEOBJECTENUMERATOR_H 00008 #define TREENODEOBJECTENUMERATOR_H 00009 00010 #include "skExecutable.h" 00011 #include "skExecutableIterator.h" 00012 #include "skTreeNode.h" 00013 00014 class CLASSEXPORT skTreeNodeObject; 00015 00020 class CLASSEXPORT skTreeNodeObjectEnumerator : public skExecutable, public skExecutableIterator{ 00021 public: 00025 skTreeNodeObjectEnumerator(skTreeNode * element,const skString& location); 00029 skTreeNodeObjectEnumerator(skTreeNode * element,const skString& location,const skString& tag); 00034 bool method(const skString& s,skRValueArray& args,skRValue& r); 00038 bool next(skRValue&); 00039 private: 00040 void findNextNode(); 00041 00042 skString m_Tag; 00043 skTreeNodeListIterator m_Iter; 00044 skTreeNode * m_CurrentNode; 00045 skString m_Location; 00046 }; 00047 #endif