Debian Codegraph @

Source/Control/Command/CReasonerCommanderGlobalConfiguration.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_COMMAND_CREASONERCOMMANDERGLOBALCONFIGURATION_H
22 #define KONCLUDE_Control_COMMAND_CREASONERCOMMANDERGLOBALCONFIGURATION_H
23
24 // Libraries includes
25 #include <QString>
26
27 // Namespace includes
28 #include "CReasonerConfigurationGroup.h"
29
30
31 // Other includes
32 #include "Config/CConfiguration.h"
33 #include "Config/CGlobalConfigurationBase.h"
34 #include "Config/CGlobalConfigurationProvider.h"
35
36
37 #include "Utilities/CSingletonProvider.hpp"
38
39 // Logger includes
40 #include "Logger/CLogger.h"
41
42
43 namespace Konclude {
44
45 using namespace Config;
46 using namespace Utilities;
47
48 namespace Control {
49
50 namespace Command {
51
52 /*!
53 *
54 * \class CReasonerCommanderGlobalConfiguration
55 * \author Andreas Steigmiller
56 * \version 0.1
57 * \brief TODO
58 *
59 */
60 class CReasonerCommanderGlobalConfiguration : public CGlobalConfigurationProvider {
61 // public methods
62 public:
63 //! Constructor
64 CReasonerCommanderGlobalConfiguration(CConfiguration *initialConfiguration = 0);
65
66 //! Destructor
67 virtual ~CReasonerCommanderGlobalConfiguration();
68
69 virtual CGlobalConfigurationBase *getCurrentGlobalConfiguration();
70
71 virtual qint64 getNextUniqueConfigID();
72
73 virtual bool installGlobalConfiguration(CGlobalConfigurationBase *configuration);
74 virtual CGlobalConfigurationBase *createNextGlobalConfiguration();
75
76
77
78 // protected methods
79 protected:
80 virtual CGlobalConfigurationBase *loadGlobalReasonerConfiguration();
81 virtual CReasonerCommanderGlobalConfiguration *saveGlobalReasonerConfiguration(CGlobalConfigurationBase *configuration);
82
83 // protected variables
84 protected:
85 CConfigurationBase *initConf;
86 CGlobalConfigurationBase *lastPersConf;
87
88 QLinkedList<CConfigurationBase *> configContainer;
89 qint64 nextUniqueConfigID;
90
91 QMutex idSyncMutex;
92
93 // private methods
94 private:
95
96 // private variables
97 private:
98
99 };
100
101 }; // end namespace Command
102
103 }; // end namespace Control
104
105 }; // end namespace Konclude
106
107 #endif // KONCLUDE_Control_COMMAND_CREASONERCOMMANDERGLOBALCONFIGURATION_H