annotate src/logparser.h @ 490:cd3dd285d0ff

OS/X build fixes
author Chris Cannam
date Thu, 18 Aug 2011 12:57:35 +0100
parents b9c153e00e84
children 533519ebc0cb
rev   line source
Chris@57 1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
Chris@57 2
Chris@57 3 /*
Chris@57 4 EasyMercurial
Chris@57 5
Chris@57 6 Based on HgExplorer by Jari Korhonen
Chris@57 7 Copyright (c) 2010 Jari Korhonen
Chris@244 8 Copyright (c) 2011 Chris Cannam
Chris@244 9 Copyright (c) 2011 Queen Mary, University of London
Chris@57 10
Chris@57 11 This program is free software; you can redistribute it and/or
Chris@57 12 modify it under the terms of the GNU General Public License as
Chris@57 13 published by the Free Software Foundation; either version 2 of the
Chris@57 14 License, or (at your option) any later version. See the file
Chris@57 15 COPYING included with this distribution for more information.
Chris@57 16 */
Chris@57 17
Chris@43 18 #ifndef LOGPARSER_H
Chris@43 19 #define LOGPARSER_H
Chris@43 20
Chris@43 21 #include <QObject>
Chris@43 22 #include <QString>
Chris@43 23 #include <QList>
Chris@43 24 #include <QMap>
Chris@43 25
Chris@43 26 typedef QMap<QString, QString> LogEntry;
Chris@43 27 typedef QList<LogEntry> LogList;
Chris@43 28
Chris@43 29 class LogParser : public QObject
Chris@43 30 {
Chris@43 31 public:
Chris@74 32 LogParser(QString text, QString separator = ":");
Chris@43 33
Chris@43 34 QStringList split();
Chris@43 35 LogList parse();
Chris@43 36
Chris@43 37 private:
Chris@43 38 QString m_text;
Chris@74 39 QString m_sep;
Chris@43 40 };
Chris@43 41
Chris@43 42 #endif // LOGPARSER_H