case crystalstructure:
botype ="crystalstructure";
break;
+ case density:
+ botype ="density";
+ break;
}
botype = botype.prepend( "bo:" );
crystalstructure/**< own, bcc, hdp, ccp, hcp, fcc, d, sc, tet, rh, or, mono*/,
electronicConfiguration/**< the electronic configuration, for example 1s2 for He*/,
group/**< This is a value between 1 and 8*/,
+ density/**< The density */,
nameOrigin/**< the origin of the name */,
orbit/**< the quantumorbit of the element */,
period/**< the period of the element */,
inAcidicbehaviour( false ),
inFamily( false ),
inGroup( false ),
- inElectronicconfiguration( false )
+ inElectronicconfiguration( false ),
+ inDensity( false )
{
}
bool inFamily;
bool inGroup;
bool inElectronicconfiguration;
+ bool inDensity;
};
ElementSaxParser::ElementSaxParser()
d->inGroup = true;
else if (attrs.value(i) == "bo:electronicConfiguration")
d->inElectronicconfiguration = true;
+ else if (attrs.value(i) == "bo:density")
+ d->inDensity = true;
}
}
return true;
type = ChemicalDataObject::electronicConfiguration;
d->inElectronicconfiguration = false;
}
+ else if (d->inDensity){
+ value = ch.toDouble();
+ type = ChemicalDataObject::density;
+ d->inDensity = false;
+ }
else//it is a non known value. Do not create a wrong object but return
return true;