File indexing completed on 2024-06-16 11:34:35

0001 /***************************************************************************
0002  *   Copyright (C) 2005 by David Saxton                                    *
0003  *   david@bluehaze.org                                                    *
0004  *                                                                         *
0005  *   This program is free software; you can redistribute it and/or modify  *
0006  *   it under the terms of the GNU General Public License as published by  *
0007  *   the Free Software Foundation; either version 2 of the License, or     *
0008  *   (at your option) any later version.                                   *
0009  ***************************************************************************/
0010 
0011 #ifndef MICROBE_H
0012 #define MICROBE_H
0013 
0014 #include "externallanguage.h"
0015 
0016 #include <QMap>
0017 
0018 typedef QMap<int, QString> ErrorMap;
0019 
0020 /**
0021 @author Daniel Clarke
0022 @author David Saxton
0023 */
0024 class Microbe : public ExternalLanguage
0025 {
0026 public:
0027     Microbe(ProcessChain *processChain);
0028     ~Microbe() override;
0029 
0030     void processInput(ProcessOptions options) override;
0031     ProcessOptions::ProcessPath::Path outputPath(ProcessOptions::ProcessPath::Path inputPath) const override;
0032 
0033 protected:
0034     bool isError(const QString &message) const override;
0035     bool isWarning(const QString &message) const override;
0036 
0037     ErrorMap m_errorMessages;
0038 };
0039 
0040 #endif