attribute.cpp
changeset 626 96c8e6860e0c
parent 616 16d63fc9ae42
child 636 f83abc1f75b4
     1.1 --- a/attribute.cpp	Thu Nov 08 15:28:03 2007 +0000
     1.2 +++ b/attribute.cpp	Tue Dec 04 12:32:56 2007 +0000
     1.3 @@ -26,6 +26,16 @@
     1.4  	return value;
     1.5  }
     1.6  
     1.7 +void Attribute::setTable (AttributeTable *at)
     1.8 +{
     1.9 +	table=at;
    1.10 +}
    1.11 +
    1.12 +AttributeTable* Attribute::getTable()
    1.13 +{
    1.14 +	return table;
    1.15 +}
    1.16 +
    1.17  QString Attribute::getDataXML()
    1.18  {
    1.19  	return valueElement ("attribute",key,value);
    1.20 @@ -67,6 +77,11 @@
    1.21  	}
    1.22  }
    1.23  
    1.24 +int AttributeTable::countKeys()
    1.25 +{
    1.26 +	return keys.count();
    1.27 +}
    1.28 +
    1.29  void AttributeTable::addValue (const QString &k, const QString &v)
    1.30  {
    1.31  	int i=keys.indexOf (k);