Mercurial > hg > easyhg
annotate logparser.h @ 43:c32067cd19f8
* Some experiments towards a graph history view
author | Chris Cannam |
---|---|
date | Sun, 07 Nov 2010 19:59:54 +0000 |
parents | |
children | f583e44d9d31 |
rev | line source |
---|---|
Chris@43 | 1 #ifndef LOGPARSER_H |
Chris@43 | 2 #define LOGPARSER_H |
Chris@43 | 3 |
Chris@43 | 4 #include <QObject> |
Chris@43 | 5 #include <QString> |
Chris@43 | 6 #include <QList> |
Chris@43 | 7 #include <QMap> |
Chris@43 | 8 |
Chris@43 | 9 typedef QMap<QString, QString> LogEntry; |
Chris@43 | 10 typedef QList<LogEntry> LogList; |
Chris@43 | 11 |
Chris@43 | 12 class LogParser : public QObject |
Chris@43 | 13 { |
Chris@43 | 14 public: |
Chris@43 | 15 LogParser(QString text); |
Chris@43 | 16 |
Chris@43 | 17 QStringList split(); |
Chris@43 | 18 LogList parse(); |
Chris@43 | 19 |
Chris@43 | 20 private: |
Chris@43 | 21 QString m_text; |
Chris@43 | 22 }; |
Chris@43 | 23 |
Chris@43 | 24 #endif // LOGPARSER_H |