Debian Codegraph @

Source/Parser/CXMLTestsuiteCommandParser.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_PARSER_CXMLTESTSUITECOMMANDPARSER_H
22 #define KONCLUDE_PARSER_CXMLTESTSUITECOMMANDPARSER_H
23
24 // Libraries includes
25 #include <QDomDocument>
26 #include <QDomElement>
27 #include <QFileInfo>
28 #include <QDir>
29
30 // Namespace includes
31 #include "CCommandParser.h"
32
33
34 // Other includes
35 #include "Control/Command/Instructions/CParseTestsuiteCommandsCommand.h"
36 #include "Control/Command/Instructions/CTestTestsuiteCommand.h"
37 #include "Control/Command/Instructions/CSkipUnsupportedCommandCommand.h"
38 #include "Control/Command/Instructions/CTestTestfileCommand.h"
39 #include "Control/Command/Instructions/CParseTestsuiteXMLNodeCommand.h"
40
41 #include "Control/Command/Records/CFinishProcessCommandRecord.h"
42 #include "Control/Command/Records/CStartProcessCommandRecord.h"
43 #include "Control/Command/Records/CStopProcessCommandRecord.h"
44 #include "Control/Command/Records/CNotSupportedNodeErrorRecord.h"
45
46 #include "Control/Command/CCommandDelegater.h"
47 #include "Control/Command/CCommandProcessedPrecondition.h"
48
49 #include "Reasoner/Query/CBooleanQueryResult.h"
50 #include "Reasoner/Query/CQueryResult.h"
51
52
53 #include "Logger/CLogIdentifier.h"
54
55
56 // Logger includes
57 #include "Logger/CLogger.h"
58
59 using namespace Konclude::Logger;
60
61 using namespace std;
62
63
64 namespace Konclude {
65
66 using namespace Reasoner::Query;
67 using namespace Control::Command;
68 using namespace Instructions;
69 using namespace Records;
70
71 namespace Parser {
72
73
74
75
76 /*!
77 *
78 * \class CXMLTestsuiteCommandParser
79 * \author Andreas Steigmiller
80 * \version 0.1
81 * \brief Parser for OWL/XML Files
82 *
83 */
84 class CXMLTestsuiteCommandParser : public CCommandParser, public CLogIdentifier {
85 // public methods
86 public:
87 //! Constructor
88 CXMLTestsuiteCommandParser();
89
90 //! Destructor
91 virtual ~CXMLTestsuiteCommandParser();
92
93 virtual bool realizeCommand(CParseTestsuiteCommandsCommand *command, CCommandDelegater *commandDelegater);
94 virtual bool realizeCommand(CParseTestsuiteXMLNodeCommand *command, CCommandDelegater *commandDelegater);
95
96 virtual bool parse(const QByteArray &content);
97 virtual bool parse(QDomElement *node);
98
99 // protected methods
100 protected:
101
102 void parseOWLlinkTestsuiteRequestNode(QDomElement *requestNode);
103
104
105 CTestTestsuiteCommand *parseTestTestsuiteNode(QDomElement *descriptionNode);
106 CTestTestfileCommand *parseTestTestfileNode(QDomElement *node, CTestTestsuiteCommand *testTestsuiteComm);
107
108
109 // protected variables
110 protected:
111 CParseTestsuiteCommandsCommand *command;
112 CParseTestsuiteXMLNodeCommand *nodeCommand;
113 CCommandRecorder *recorder;
114 CCommandDelegater *delegater;
115
116 QString sourcePath;
117
118
119 // private methods
120 private:
121
122
123 // private variables
124 private:
125
126
127
128 };
129
130 }; // end namespace Parser
131
132 }; // end namespace Konclude
133
134 #endif // KONCLUDE_PARSER_CXMLTESTSUITECOMMANDPARSER_H