+++ /dev/null
-include_directories( ${CMAKE_SOURCE_DIR}/libkdeedu/libscience )
-
-set(cml_LIB_SRCS
- cmlclasses.cpp
- xml_cml.cpp
-)
-
-kde4_automoc(${cml_LIB_SRCS})
-
-kde4_add_library(cml SHARED ${cml_LIB_SRCS})
-
-target_link_libraries(cml ${QT_QTXML_LIBRARY} ${QT_QTCORE_LIBRARY} )
-
-install_targets(${LIB_INSTALL_DIR} cml )
-
+++ /dev/null
-<?xml version="1.0"?>
-<molecule xmlns="http://www.xml-cml.org/schema/cml2/core" id="Ethanol">
- <atomArray>
- <atom id="a1" elementType="H" x3="-1.916300" y3="-0.043300" z3="-1.055200"/>
- <atom id="a2" elementType="C" x3="-2.529600" y3="-0.050300" z3="-1.960600"/>
- <atom id="a3" elementType="H" x3="-2.235900" y3="0.793700" z3="-2.591800"/>
- <atom id="a4" elementType="H" x3="-2.311100" y3="-0.960600" z3="-2.527100"/>
- <atom id="a5" elementType="C" x3="-4.003000" y3="0.025300" z3="-1.617800"/>
- <atom id="a6" elementType="H" x3="-4.299600" y3="-0.832200" z3="-1.006300"/>
- <atom id="a7" elementType="H" x3="-4.224400" y3="0.947100" z3="-1.071600"/>
- <atom id="a8" elementType="O" x3="-4.760100" y3="0.012900" z3="-2.821500"/>
- <atom id="a9" elementType="H" x3="-5.698200" y3="0.061600" z3="-2.569500"/>
- </atomArray>
- <bondArray>
- <bond atomRefs2="a1 a2" order="1"/>
- <bond atomRefs2="a2 a3" order="1"/>
- <bond atomRefs2="a2 a4" order="1"/>
- <bond atomRefs2="a2 a5" order="1"/>
- <bond atomRefs2="a5 a6" order="1"/>
- <bond atomRefs2="a5 a7" order="1"/>
- <bond atomRefs2="a5 a8" order="1"/>
- <bond atomRefs2="a8 a9" order="1"/>
- </bondArray>
-</molecule>
class CMLParser : public QXmlDefaultHandler
{
public:
- CMLParser()
- {
- };
+ CMLParser();
+ ~CMLParser();
- ~CMLParser()
- {
- };
-
bool startDocument();
bool startElement( const QString&, const QString&, const QString& ,