COPASI API  4.16.103
CStructureParser.h
Go to the documentation of this file.
1 // Copyright (C) 2010 - 2013 by Pedro Mendes, Virginia Tech Intellectual
2 // Properties, Inc., University of Heidelberg, and The University
3 // of Manchester.
4 // All rights reserved.
5 
6 // Copyright (C) 2008 - 2009 by Pedro Mendes, Virginia Tech Intellectual
7 // Properties, Inc., EML Research, gGmbH, University of Heidelberg,
8 // and The University of Manchester.
9 // All rights reserved.
10 
11 // written by pwilly on 09.07.08
12 
13 #ifndef STRUCTUREPARSER_H
14 #define STRUCTUREPARSER_H
15 
16 #include <QtXml/QXmlAttributes>
17 #include <QtCore/QLinkedList>
18 
19 class QString;
20 
21 class CStructureParser : public QXmlDefaultHandler
22 {
23 public:
24  CStructureParser(int);
25  // ~CStructureParser(){};
26 
27  bool startDocument();
28  bool startElement(const QString&, const QString&, const QString& ,
29  const QXmlAttributes&);
30  bool characters(const QString&);
31  bool endElement(const QString&, const QString&, const QString&);
32 
33  bool ignorableWhitespace(const QString&);
34  bool skippedEntity(const QString&);
35 
36  QString getTeX();
37 
38 private:
39  QString indent;
40 
41  // for writing formula in latex form
42  QString texHead, tex, texTail;
43 
44  // tags
45  QString tagName;
46 
47  // for column allignment
51 
52  QLinkedList<QString> mListOfUncompletedTags;
53 };
54 
55 #endif
bool needToWriteColumnAllignment
bool ignorableWhitespace(const QString &)
bool endElement(const QString &, const QString &, const QString &)
bool startElement(const QString &, const QString &, const QString &, const QXmlAttributes &)
QLinkedList< QString > mListOfUncompletedTags
bool characters(const QString &)
bool skippedEntity(const QString &)