if ( attrs.localName( i ) == "number" )
d->currentIsotope->setNucleons( attrs.value( i ).toInt() );
}
- } else if (d->inIsotope && localName == "spin") {
-//X kDebug() << "bo:spin" << endl;
- d->inSpin = true;
- } else if (d->inIsotope && localName == "magmoment") {
-//X kDebug() << "bo:magneticMoment" << endl;
- d->inMagMoment = true;
-// }else if (d->inIsotope && localName == "halflife") {
-//X kDebug() << "bo:halfLife" << endl;
-// for (int i = 0; i < attrs.length(); ++i)
-// {
-// if ( attrs.localName( i ) == "unit" )
-// {
-// d->currentDataObject->setUnit( d->currentUnit );
-// }
-// else
-// {
-// d->currentUnit = ChemicalDataObject::noUnit;
-// }
-// }
-// d->inHalfLife = true;
-//X if ( d->currentUnit != ChemicalDataObject::noUnit )
-//X d->currentDataObject->setUnit( d->currentUnit );
-
-//X d->currentUnit = ChemicalDataObject::noUnit;
- } else if (d->inIsotope && localName == "alphadecay"){
-//X kDebug() << "bo:alphaDecay" << endl;
- d->inAlphaDecay = true;
- } else if (d->inIsotope && localName == "betaplusdecay"){
-//X kDebug() << "bo:betaplusDecay" << endl;
- d->inBetaplusDecay = true;
- } else if (d->inIsotope && localName == "betaminusdecay"){
-//X kDebug() << "bo:betaminusDecay" << endl;
- d->inBetaminusDecay = true;
- } else if (d->inIsotope && localName == "ecdecay"){
-//X kDebug() << "bo:ecDecay" << endl;
- d->inECDecay = true;
} else if (d->inIsotope && localName == "scalar")
{
for (int i = 0; i < attrs.length(); ++i)
}
d->inHalfLife = true;
}
- }
- }
- else if (d->inIsotope && localName == "bo:relativeAbundance") {
-//X kDebug() << "bo:relativeAbundance" << endl;
- d->inAbundance = true;
- }
+ else if (attrs.value(i) == "bo:alphaDecay")
+ d->inAlphaDecay = true;
+ else if (attrs.value(i) == "bo:ecDecay")
+ d->inECDecay = true;
+ else if (attrs.value(i) == "bo:betaminusDecay")
+ d->inBetaminusDecay = true;
+ else if (attrs.value(i) == "bo:betaplusDecay")
+ d->inBetaplusDecay = true;
+ else if (attrs.value(i) == "bo:spin")
+ d->inSpin = true;
+ else if (attrs.value(i) == "bo:magneticMoment")
+ d->inMagMoment = true;
+ else if (attrs.value(i) == "bo:relativeAbundance")
+ d->inAbundance = true;
+ }
+ }
return true;
}