Debian Codegraph @

Source/Test/Evaluation/CReasonerEvaluationConfigurationLoader.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_EVALUATION_CREASONEREVALUATIONCONFIGURATIONLOADER_H
22 #define KONCLUDE_TEST_EVALUATION_CREASONEREVALUATIONCONFIGURATIONLOADER_H
23
24 // Libraries includes
25 #include <QString>
26 #include <QRegExp>
27 #include <QTime>
28 //#include <QTest>
29
30 // Namespace includes
31 #include "EvaluationSettings.h"
32
33 // Other includes
34 #include "Control/Interface/OWLlink/COWLlinkProcessor.h"
35
36 #include "Control/Command/CConfigManagerReader.h"
37
38 // Logger includes
39 #include "Logger/CLogger.h"
40 #include "Logger/CLogIdentifier.h"
41
42
43 #include <stdio.h>
44 #include <iostream>
45
46
47 namespace Konclude {
48
49 using namespace Logger;
50 using namespace Control::Interface::OWLlink;
51 using namespace Control::Command;
52
53 namespace Test {
54
55 namespace Evaluation {
56
57
58 /*!
59 *
60 * \class CReasonerEvaluationConfigurationLoader
61 * \author Andreas Steigmiller
62 * \version 0.1
63 * \brief TODO
64 *
65 */
66 class CReasonerEvaluationConfigurationLoader : public COWLlinkProcessor {
67 // public methods
68 public:
69 //! Constructor
70 CReasonerEvaluationConfigurationLoader();
71
72 //! Destructor
73 virtual ~CReasonerEvaluationConfigurationLoader();
74
75
76 virtual bool loadConfiguration(const QString& owllinkConfigFile, CConfiguration *config = 0);
77
78
79
80 // protected methods
81 protected:
82 virtual COWLlinkProcessor* initializeOWLlinkContent();
83 virtual COWLlinkProcessor* concludeOWLlinkContent();
84
85 virtual CConfiguration* getConfiguration();
86
87 // protected variables
88 protected:
89 QString mReqFileString;
90
91 bool mBlockUntilProcessed;
92 QTime mResponseTime;
93 QSemaphore mBlockingSem;
94
95 CConfiguration* mLoaderConfig;
96 bool mConfigSucessfullyLoaded;
97
98
99 // private methods
100 private:
101
102 // private variables
103 private:
104
105 };
106
107 }; // end namespace Evaluation
108
109 }; // end namespace Test
110
111 }; // end namespace Konclude
112
113 #endif // KONCLUDE_TEST_EVALUATION_CREASONEREVALUATIONCONFIGURATIONLOADER_H