#include <KAVIterator.h>
Inheritance diagram for Core::KeysAndValuesIterator:
Public Member Functions | |
KeysAndValuesIterator (const Dictionary *coll) | |
virtual String * | className (void) const |
Answer receiver class name. | |
virtual Object * | key (void) |
virtual Object * | value (void) |
|
Definition at line 30 of file KAVIterator.cc. 00031 : CollectionIterator(coll) 00032 { 00033 }
|
|
Answer receiver class name. Because there isn't any standard way to obtain class name this method comes to place. Every class should rewrite this method but many didn't (yet). Reimplemented from Core::CollectionIterator. Definition at line 36 of file KAVIterator.cc. 00037 { 00038 return new String("KeysAndValuesIterator"); 00039 }
|
|
Definition at line 42 of file KAVIterator.cc. References Core::Object::error(), Core::Object::isAssociation(), and Core::CollectionIterator::item. Referenced by Tools::Configuration::keys(), and Tools::Configuration::reloadAll(). 00043 { 00044 if (!item->isAssociation()) 00045 error(new String("Improper object for iteration. Association expected.")); 00046 return ((Association *) item)->key(); 00047 }
|
|
Reimplemented from Core::CollectionIterator. Definition at line 49 of file KAVIterator.cc. References Core::Object::error(), Core::Object::isAssociation(), and Core::CollectionIterator::item. Referenced by Tools::Configuration::reloadAll(). 00050 { 00051 if (!item->isAssociation()) 00052 error(new String("Improper object for iteration. Association expected.")); 00053 return ((Association *) item)->value(); 00054 }
|