diff -r 22955004d512 -r 96c8e6860e0c attribute.cpp --- a/attribute.cpp Fri Nov 09 12:07:22 2007 +0000 +++ b/attribute.cpp Tue Dec 04 12:32:56 2007 +0000 @@ -26,6 +26,16 @@ return value; } +void Attribute::setTable (AttributeTable *at) +{ + table=at; +} + +AttributeTable* Attribute::getTable() +{ + return table; +} + QString Attribute::getDataXML() { return valueElement ("attribute",key,value); @@ -67,6 +77,11 @@ } } +int AttributeTable::countKeys() +{ + return keys.count(); +} + void AttributeTable::addValue (const QString &k, const QString &v) { int i=keys.indexOf (k);