Debian Codegraph @

Source/Control/Loader/CSPARQLHttpServerLoader.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_CSPARQLHTTPSERVERLOADER_H
22 #define KONCLUDE_CONTROL_LOADER_CSPARQLHTTPSERVERLOADER_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/SPARQL/CSPARQLHttpConnectionHandlerProcessor.h"
37 #include "Control/Interface/SPARQL/CSPARQLHttpConnectionHandlerProcessorFactory.h"
38
39 #include "Control/Command/CConfigManagerReader.h"
40
41 #include "Network/HTTP/CQtHttpConnectionHandlerPooledFactory.h"
42 #include "Network/HTTP/CQtHttpListner.h"
43
44
45 // Logger includes
46 #include "Logger/CLogger.h"
47 #include "Logger/CLogIdentifier.h"
48
49
50 #include <stdio.h>
51 #include <iostream>
52
53
54 namespace Konclude {
55
56 using namespace Logger;
57
58 using namespace Network::HTTP;
59
60 namespace Control {
61
62 using namespace Interface::SPARQL;
63 using namespace Command;
64
65 namespace Loader {
66
67 /*!
68 *
69 * \class CSPARQLHttpServerLoader
70 * \author Andreas Steigmiller
71 * \version 0.1
72 * \brief TODO
73 *
74 */
75 class CSPARQLHttpServerLoader : public CLoader {
76 // public methods
77 public:
78 //! Constructor
79 CSPARQLHttpServerLoader();
80
81 //! Destructor
82 virtual ~CSPARQLHttpServerLoader();
83
84
85 virtual CLoader *init(CLoaderFactory *loaderFactory = 0, CConfiguration *config = 0);
86 virtual CLoader *load();
87 virtual CLoader *exit();
88
89
90
91 // protected methods
92 protected:
93
94 // protected variables
95 protected:
96 CConfiguration *loaderConfig;
97 cint64 mPort;
98
99 CSPARQLHttpConnectionHandlerProcessorFactory* mHanlderFactory;
100 CQtHttpConnectionHandlerPooledFactory* mHandlerPool;
101 CQtHttpListner* mHttpListner;
102
103
104 // private methods
105 private:
106
107 // private variables
108 private:
109
110 };
111
112 }; // end namespace Loader
113
114 }; // end namespace Control
115
116 }; // end namespace Konclude
117
118 #endif // KONCLUDE_Control_LOADER_CSPARQLHttpServerLoader_H