Debian Codegraph @

Source/Test/COWLFileAxiomRemover.h

raw
1 /*
2 * Copyright (C) 2013-2015, 2019 by the Konclude Developer Team.
3 *
4 * This file is part of the reasoning system Konclude.
5 * For details and support, see <http://konclude.com/>.
6 *
7 * Konclude is free software: you can redistribute it and/or modify
8 * it under the terms of version 3 of the GNU Lesser General Public
9 * License (LGPLv3) as published by the Free Software Foundation.
10 *
11 * Konclude is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU (Lesser) General Public License for more details.
15 *
16 * You should have received a copy of the GNU (Lesser) General Public
17 * License along with Konclude. If not, see <http://www.gnu.org/licenses/>.
18 *
19 */
20
21 #ifndef KONCLUDE_TEST_COWLFILEAXIOMREMOVER_H
22 #define KONCLUDE_TEST_COWLFILEAXIOMREMOVER_H
23
24 // Libraries includes
25 #include <QProcess>
26 #include <QDir>
27 #include <QDomDocument>
28 #include <iostream>
29
30 // Namespace includes
31
32
33 // Other includes
34 #include "Config/CConfiguration.h"
35 #include "Config/CConfigDataReader.h"
36
37
38 // Logger includes
39 #include "Logger/CLogger.h"
40 #include "Logger/CLogIdentifier.h"
41
42
43 using namespace std;
44
45
46 namespace Konclude {
47
48 using namespace Config;
49 using namespace Concurrent;
50
51 namespace Test {
52
53
54 /*!
55 *
56 * \class COWLFileAxiomRemover
57 * \author Andreas Steigmiller
58 * \version 0.1
59 * \brief TODO
60 *
61 */
62 class COWLFileAxiomRemover : public CLogIdentifier {
63
64 // public methods
65 public:
66 //! Constructor
67 COWLFileAxiomRemover(CConfiguration *config);
68
69 //! Destructor
70 virtual ~COWLFileAxiomRemover();
71
72 bool loadRemoveAxiomsAndSave(const QString& requestFileName, const QString& responseFileName);
73
74 // protected methods
75 protected:
76 bool removeElements(QDomElement& domElement, bool axiomLevel, QDomDocument& document);
77 void removeAttributes(QDomElement& domElement, QDomDocument& document);
78
79 // protected variables
80 protected:
81 QSet<QString> mRemoveTagNameSet;
82 QSet<QString> mAlwaysRemoveTagNameSet;
83 QSet<QString> mRemoveAttributeNameSet;
84 CConfiguration* mConfig;
85
86 cint64 mStatRemovedAxioms;
87 cint64 mStatReplacedExpressions;
88
89 bool mConfReplaceDatatypeExpressions;
90
91 // private methods
92 private:
93
94 // private methods
95 private slots:
96
97 // private variables
98 private:
99
100 };
101
102 }; // end namespace Test
103
104 }; // end namespace Konclude
105
106 #endif // KONCLUDE_TEST_COWLFILEAXIOMREMOVER_H