Debian Codegraph @

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