Debian Codegraph @

Source/Parser/COWL2QtXMLOntologySAXParser.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_COWL2QTXMLONTOLOGYSAXPARSER_H
22 #define KONCLUDE_PARSER_COWL2QTXMLONTOLOGYSAXPARSER_H
23
24 // Libraries includes
25 #include <QXmlDefaultHandler>
26 #include <QXmlSimpleReader>
27 #include <QXmlStreamReader>
28
29 // Namespace includes
30 #include "ParserSettings.h"
31 #include "CXMLHandlerStackBase.h"
32 #include "CXMLParsingHandlingContext.h"
33 #include "CQtXMLContentHandlerConverter.h"
34 #include "CXMLParsingHandlingContextBase.h"
35
36 #include "COntologyBuilder.h"
37 #include "CXMLOWL2Handler.h"
38
39
40 // Other includes
41 #include "Context/CContextBase.h"
42
43 #include "Utilities/Memory/CMemoryPoolAllocationManager.h"
44 #include "Utilities/Memory/CMemoryPoolProvider.h"
45 #include "Utilities/Memory/CNewAllocationMemoryPoolProvider.h"
46
47 // Logger includes
48 #include "Logger/CLogger.h"
49
50
51 using namespace Konclude::Logger;
52
53
54
55 namespace Konclude {
56
57 using namespace Utilities::Memory;
58 using namespace Context;
59
60 namespace Parser {
61
62
63
64
65
66
67
68 /*!
69 *
70 * \class COWL2QtXMLOntologySAXParser
71 * \author Andreas Steigmiller
72 * \version 0.1
73 * \brief TODO
74 *
75 */
76 class COWL2QtXMLOntologySAXParser {
77 // public methods
78 public:
79 //! Constructor
80 COWL2QtXMLOntologySAXParser(COntologyBuilder* ontologyBuilder);
81
82 virtual ~COWL2QtXMLOntologySAXParser();
83
84 bool parseOntology(const QString& fileString);
85 bool parseOntology(QIODevice* ioDevice);
86
87 // protected methods
88 protected:
89
90
91 // protected variables
92 protected:
93 CXMLHandlerStackBase* mHandlerStack;
94 CXMLParsingHandlingContext* mParsingHandlingContext;
95 CXMLOWL2Handler* mOWLXMLStackHandler;
96 COntologyBuilder* mOntologyBuilder;
97
98 CMemoryPoolAllocationManager* mMemoryPoolAllocationMan;
99 CMemoryPoolProvider* mMemoryPoolProvider;
100 CContextBase* mContextBase;
101
102
103 // private methods
104 private:
105
106
107 // private variables
108 private:
109
110
111
112 };
113
114 }; // end namespace Parser
115
116 }; // end namespace Konclude
117
118 #endif // KONCLUDE_PARSER_COWL2QTXMLONTOLOGYSAXPARSER_H