Debian Codegraph @

Source/Config/CConfigDescription.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_CCONFIGDESCRIPTION_H
22 #define KONCLUDE_CONFIG_CCONFIGDESCRIPTION_H
23
24 // Libraries includes
25 #include <QString>
26 #include <QVariant>
27
28 // Namespace includes
29 #include "CConfigType.h"
30 #include "CConvertStringConfigType.h"
31 #include "CConvertIntegerConfigType.h"
32 #include "CConvertDoubleConfigType.h"
33 #include "CConvertBooleanConfigType.h"
34 #include "CConvertStringListConfigType.h"
35
36 // Other includes
37
38
39 // Logger includes
40 #include "Logger/CLogger.h"
41
42
43 namespace Konclude {
44
45 namespace Config {
46
47 /*!
48 *
49 * \class CConfigDescription
50 * \author Andreas Steigmiller
51 * \version 0.1
52 * \brief TODO
53 *
54 */
55 class CConfigDescription {
56 // public methods
57 public:
58 //! Constructor
59 CConfigDescription(const QString &name, const QString &description, CConfigType *takeConfigType);
60
61 //! Destructor
62 virtual ~CConfigDescription();
63
64 virtual CConfigType *getConfigType();
65 virtual CConfigDescription *setConfigType(CConfigType *takeConfigType);
66
67
68 virtual CConfigDescription *setConfigName(const QString &name);
69 virtual CConfigDescription *setConfigDescription(const QString &description);
70 virtual CConfigDescription *setConfigID(qint64 id);
71
72 virtual QString getConfigName();
73 virtual QString getConfigDescription();
74 virtual qint64 getConfigID();
75
76
77 virtual bool supportsStringConvertion();
78 virtual bool supportsIntegerConvertion();
79 virtual bool supportsDoubleConvertion();
80 virtual bool supportsBooleanConvertion();
81 virtual bool supportsStringListConvertion();
82
83
84
85 // protected methods
86 protected:
87
88 // protected variables
89 protected:
90 QString configProperty;
91 QString propertyDescription;
92 qint64 configPropertyID;
93 CConfigType *type;
94
95 bool stringConvertable;
96 bool integerConvertable;
97 bool doubleConvertable;
98 bool booleanConvertable;
99 bool stringListConvertable;
100
101 // private methods
102 private:
103
104 // private variables
105 private:
106
107 };
108
109 }; // end namespace Config
110
111 }; // end namespace Konclude
112
113 #endif // KONCLUDE_CONFIG_CCONFIGDESCRIPTION_H