Debian Codegraph @

Source/Config/CConfigurationBase.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_CONFIG_CCONFIGURATIONBASE_H
22 #define KONCLUDE_CONFIG_CCONFIGURATIONBASE_H
23
24 // Libraries includes
25
26
27 // Namespace includes
28 #include "CConfiguration.h"
29
30 // Other includes
31
32
33 // Logger includes
34 #include "Logger/CLogger.h"
35
36
37 namespace Konclude {
38
39 namespace Config {
40
41 /*!
42 *
43 * \class CConfigurationBase
44 * \author Andreas Steigmiller
45 * \version 0.1
46 * \brief TODO
47 *
48 */
49 class CConfigurationBase : public CConfiguration {
50 // public methods
51 public:
52 //! Constructor
53 CConfigurationBase(CConfiguration *previousConfiguration, qint64 configurationID);
54 CConfigurationBase(CConfigurationBase *previousConfiguration, qint64 configurationID);
55 CConfigurationBase(CConfigurationGroup *configGroup, qint64 configurationID);
56
57 //! Destructor
58 virtual ~CConfigurationBase();
59
60 virtual CConfigData *getRelatedConfigChange(const QString &configName, bool defaultCompensation = true);
61 virtual CConfigData *getRelatedConfigChange(qint64 configIndex, bool defaultCompensation = true);
62
63 virtual bool hasConfigChange(qint64 configIndex, qint64 prevConfID, CConfigData *configData = 0);
64
65 virtual bool isSuccessor(qint64 configID);
66
67 virtual qint64 getConfigurationLevel();
68 virtual qint64 getConfigurationID();
69
70
71 virtual CConfigurationBase *appendConfigurationsToList(QLinkedList<CConfigurationBase *> *configurationList);
72
73 virtual bool isConfigLevelLocked(CConfigData *data);
74 virtual bool isConfigLevelLocked(qint64 configIndex, bool defaultCompensation = true);
75 virtual bool isConfigLevelLocked(const QString &configName, bool defaultCompensation = true);
76
77 // protected methods
78 protected:
79
80 // protected variables
81 protected:
82 CConfigurationBase *prevConfBase;
83 qint64 confID;
84
85 // private methods
86 private:
87
88 // private variables
89 private:
90
91 };
92
93 }; // end namespace Config
94
95 }; // end namespace Konclude
96
97 #endif // KONCLUDE_CONFIG_CCONFIGURATIONBASE_H