KompareDiff2

parser.h
1/*
2 SPDX-FileCopyrightText: 2002-2004 Otto Bruggeman <otto.bruggeman@home.nl>
3 SPDX-FileCopyrightText: 2010 Kevin Kofler <kevin.kofler@chello.at>
4
5 SPDX-License-Identifier: GPL-2.0-or-later
6*/
7
8#ifndef KOMPAREDIFF2_PARSER_H
9#define KOMPAREDIFF2_PARSER_H
10
11// lib
12#include "global.h"
13// Qt
14#include <QStringList>
15
16namespace KompareDiff2
17{
18
19class DiffModelList;
20class ModelList;
21
22class Parser
23{
24public:
25 explicit Parser(const ModelList *list);
26 ~Parser();
27
28public:
29 DiffModelList *parse(QStringList &diffLines, bool *malformed = nullptr);
30
31 Generator generator() const
32 {
33 return m_generator;
34 };
35
36 Format format() const
37 {
38 return m_format;
39 };
40
41private:
42 /** Which program was used to generate the output */
43 Generator determineGenerator(const QStringList &diffLines);
44
45 int cleanUpCrap(QStringList &diffLines);
46
47private:
48 Generator m_generator;
49 Format m_format;
50
51 const ModelList *m_list;
52};
53
54} // End of namespace KompareDiff2
55
56#endif
KompareDiff2 namespace.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:13:14 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.