9 void Attribute::setKey (const QString &k)
14 QString Attribute::getKey ()
19 void Attribute::setValue(const QString &v)
24 QString Attribute::getValue()
29 QString Attribute::getDataXML()
31 return valueElement ("attribute",key,value);
35 ///////////////////////////////////////////////////////////////
36 AttributeTable::AttributeTable()
41 AttributeTable::~AttributeTable()
45 void AttributeTable::clear ()
51 void AttributeTable::addKey (const QString &k)
53 if (!keys.contains (k) )
56 values.append (QStringList() );
60 void AttributeTable::removeKey (const QString &k)
62 int i=keys.indexOf (k);
70 void AttributeTable::addValue (const QString &k, const QString &v)
72 int i=keys.indexOf (k);
76 values.append (QStringList (v));
79 int j=values.at(i).indexOf(k);
80 if (j<0) values[i].append (QString(v));
84 QStringList AttributeTable::getKeys ()
89 QStringList AttributeTable::getValues(const QString &k)
91 int i=keys.indexOf (k);
98 QString AttributeTable::getDataXML()
100 return valueElement ("attributeList","key","value");