Debian Codegraph @

Source/Control/Loader/COWLlinkBatchFileLoader.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_Control_LOADER_COWLLINKBATCHFILELOADER_H
22 #define KONCLUDE_Control_LOADER_COWLLINKBATCHFILELOADER_H
23
24 // Libraries includes
25 #include <QString>
26 #include <QRegExp>
27 #include <QTime>
28 //#include <QTest>
29
30 // Namespace includes
31 #include "LoaderSettings.h"
32 #include "CLoader.h"
33 #include "CLoaderFactory.h"
34
35 // Other includes
36 #include "Control/Interface/OWLlink/COWLlinkProcessor.h"
37 #include "Control/Interface/OWLlink/COWLLinkRecordInterpreter.h"
38
39 #include "Control/Command/CConfigManagerReader.h"
40
41 // Logger includes
42 #include "Logger/CLogger.h"
43 #include "Logger/CLogIdentifier.h"
44
45
46 #include <stdio.h>
47 #include <iostream>
48
49
50 namespace Konclude {
51
52 using namespace Logger;
53
54 namespace Control {
55
56 using namespace Interface::OWLlink;
57 using namespace Command;
58
59 namespace Loader {
60
61 /*!
62 *
63 * \class COWLlinkBatchFileLoader
64 * \author Andreas Steigmiller
65 * \version 0.1
66 * \brief TODO
67 *
68 */
69 class COWLlinkBatchFileLoader : public CLoader, public COWLlinkProcessor {
70 // public methods
71 public:
72 //! Constructor
73 COWLlinkBatchFileLoader();
74
75 //! Destructor
76 virtual ~COWLlinkBatchFileLoader();
77
78
79 virtual CLoader *init(CLoaderFactory *loaderFactory = 0, CConfiguration *config = 0);
80 virtual CLoader *load();
81 virtual CLoader *exit();
82
83
84
85 // protected methods
86 protected:
87 virtual COWLlinkProcessor *initializeOWLlinkContent();
88 virtual COWLlinkProcessor *concludeOWLlinkContent();
89
90 virtual CConfiguration *getConfiguration();
91
92 // protected variables
93 protected:
94 QString reqFileString;
95 QString resFileString;
96
97 bool directConsoleOutput;
98 bool directErrorOutput;
99 bool closeAfterOutput;
100 bool blockUntilProcessed;
101 QTime mResponseTime;
102 QSemaphore blockingSem;
103 COWLLinkRecordInterpreter *owllinkInterpreter;
104
105 CConfiguration *loaderConfig;
106
107
108 // private methods
109 private:
110
111 // private variables
112 private:
113
114 };
115
116 }; // end namespace Loader
117
118 }; // end namespace Control
119
120 }; // end namespace Konclude
121
122 #endif // KONCLUDE_Control_LOADER_COWLLINKBATCHFILELOADER_H