Debian Codegraph @

Source/Reasoner/Revision/Persistence/COntologyRevisionDirectoryOWL2XMLFilePersistencer.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_REASONER_REVISION_PERSISTENCE_CONTOLOGYREVISIONDIRECTORYOWL2XMLFILEPERSISTENCER_H
22 #define KONCLUDE_REASONER_REVISION_PERSISTENCE_CONTOLOGYREVISIONDIRECTORYOWL2XMLFILEPERSISTENCER_H
23
24 // Libraries includes
25 #include <QDir>
26 #include <QTemporaryFile>
27 #include <QFile>
28 #include <QDomDocument>
29
30 // Namespace includes
31 #include "PersistenceSettings.h"
32 #include "COntologyRevisionDirectoryFilePersistencerBase.h"
33
34
35 // Other includes
36 #include "Config/CConfigDataReader.h"
37
38 #include "Reasoner/Revision/COntologyRevision.h"
39
40 #include "Reasoner/Generator/CConcreteOntologyUpdateCollectorBuilder.h"
41
42 #include "Parser/COWL2QtXMLOntologyStableStreamParser.h"
43 #include "Parser/COWL2QtXMLOntologyStreamParser.h"
44
45 #include "Renderer/COntologyAxiomExpressionsRenderVisitor.h"
46 #include "Renderer/COntologyOWL2QtXMLRenderer.h"
47
48 // Logger includes
49 #include "Logger/CLogger.h"
50 #include "Logger/CLogDomain.h"
51
52
53 namespace Konclude {
54
55 using namespace Logger;
56 using namespace Renderer;
57 using namespace Config;
58 using namespace Parser;
59
60 namespace Reasoner {
61
62 using namespace Generator;
63
64 namespace Revision {
65
66 namespace Persistence {
67
68 /*!
69 *
70 * \class COntologyRevisionDirectoryOWL2XMLFilePersistencer
71 * \author Andreas Steigmiller
72 * \version 0.1
73 * \brief TODO
74 *
75 */
76 class COntologyRevisionDirectoryOWL2XMLFilePersistencer : public COntologyRevisionDirectoryFilePersistencerBase {
77 // public methods
78 public:
79 //! Constructor
80 COntologyRevisionDirectoryOWL2XMLFilePersistencer(CConfiguration* config);
81
82 //! Destructor
83 virtual ~COntologyRevisionDirectoryOWL2XMLFilePersistencer();
84
85 // protected methods
86 protected:
87
88 virtual bool writeOntologyToFile(QFile* file, COntologyRevision* ontoRev);
89
90 // protected variables
91 protected:
92 bool mConfEnforceUTF8ConvertingParsing;
93
94
95
96
97 // private methods
98 private:
99
100 // private variables
101 private:
102
103 };
104
105 }; // end namespace Persistence
106
107 }; // end namespace Revision
108
109 }; // end namespace Reasoner
110
111 }; // end namespace Konclude
112
113 #endif // KONCLUDE_REASONER_REVISION_PERSISTENCE_CONTOLOGYREVISIONDIRECTORYOWL2XMLFILEPERSISTENCER_H