diff -r 16d63fc9ae42 -r 92bebad145d2 attribute.cpp --- a/attribute.cpp Thu Nov 08 15:28:03 2007 +0000 +++ b/attribute.cpp Wed Dec 05 14:58:02 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);