case relativeAbundance:
botype = "relativeAbundance";
break;
+ case family:
+ botype ="family";
+ break;
+ case group:
+ botype ="group";
+ break;
+ case acidicbehaviour:
+ botype ="acidicbehaviour";
+ break;
+ case electronicConfiguration:
+ botype ="electronicConfiguration";
+ break;
+ case crystalstructure:
+ botype ="crystalstructure";
+ break;
}
-
+
botype = botype.prepend( "bo:" );
return botype;
break;
case noUnit:
return "noUnit";
+ case y:
+ return "y";
+ case s:
+ return "s";
}
bounit = bounit.prepend( "bo:" );
boilingpoint/**< the boilingpoint */,
periodTableBlock/**< the block of the element */,
family/** "Noblegas" "Non-Metal" "Rare_Earth" "Alkaline_Earth" "Alkali_Earth" "Transition" "Other_Metal" "Metalloids" "Halogene" */,
+ group,
+ crystalstructure,
+ electronicConfiguration,
+ acidicbehaviour,
nameOrigin/**< the origin of the name */,
orbit/**< the quantumorbit of the element */,
period/**< the period of the element */,
inNameOrigin(false),
inDiscoveryDate(false),
inDiscoverers(false),
- inPeriod(false)
+ inPeriod(false),
+ inCrystalstructure( false ),
+ inAcidicbehaviour( false ),
+ inFamily( false ),
+ inGroup( false ),
+ inElectronicconfiguration( false )
{
}
bool inDiscoveryDate;
bool inDiscoverers;
bool inPeriod;
+ bool inCrystalstructure;
+ bool inAcidicbehaviour;
+ bool inFamily;
+ bool inGroup;
+ bool inElectronicconfiguration;
};
ElementSaxParser::ElementSaxParser()
d->inDiscoverers = true;
else if (attrs.value(i) == "bo:period")
d->inPeriod = true;
+ else if (attrs.value(i) == "bo:crystalstructure")
+ d->inCrystalstructure = true;
+ else if (attrs.value(i) == "bo:acidicbehaviour")
+ d->inAcidicbehaviour = true;
+ else if (attrs.value(i) == "bo:family")
+ d->inFamily = true;
+ else if (attrs.value(i) == "bo:group")
+ d->inGroup = true;
+ else if (attrs.value(i) == "bo:electronicConfiguration")
+ d->inElectronicconfiguration = true;
}
}
return true;
type = ChemicalDataObject::period;
d->inPeriod = false;
}
+ else if (d->inCrystalstructure) {
+ value = ch;
+ type = ChemicalDataObject::crystalstructure;
+ d->inCrystalstructure = false;
+ }
+ else if (d->inAcidicbehaviour) {
+ value = ch.toInt();
+ type = ChemicalDataObject::acidicbehaviour;
+ d->inAcidicbehaviour = false;
+ }
+ else if (d->inFamily) {
+ value = ch;
+ type = ChemicalDataObject::family;
+ d->inFamily = false;
+ }
+ else if (d->inGroup) {
+ value = ch.toInt();
+ type = ChemicalDataObject::group;
+ d->inGroup = false;
+ }
+ else if (d->inElectronicconfiguration) {
+ value = ch;
+ type = ChemicalDataObject::electronicConfiguration;
+ d->inElectronicconfiguration = false;
+ }
else//it is a non known value. Do not create a wrong object but return
return true;
xmlreadingtest_LDFLAGS = $(all_libraries)
xmlreadingtest_LDADD = ../libscience.la
-isotopereadingtest_SOURCES = isotopereadingtest.cpp
-isotopereadingtest_LDFLAGS = $(all_libraries)
-isotopereadingtest_LDADD = ../libscience.la
+#isotopereadingtest_SOURCES = isotopereadingtest.cpp
+#isotopereadingtest_LDFLAGS = $(all_libraries)
+#isotopereadingtest_LDADD = ../libscience.la
-cmlspectest_SOURCES = cmlspectest.cpp
-cmlspectest_LDFLAGS = $(all_libraries)
-cmlspectest_LDADD = ../libscience.la
+#cmlspectest_SOURCES = cmlspectest.cpp
+#cmlspectest_LDFLAGS = $(all_libraries)
+#cmlspectest_LDADD = ../libscience.la
METASOURCES = AUTO