Debian Codegraph @

Source/Test/Evaluation/CReasonerEvaluationDataValue.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_TEST_EVALUATION_CREASONEREVALUATIONDATAVALUE_H
22 #define KONCLUDE_TEST_EVALUATION_CREASONEREVALUATIONDATAVALUE_H
23
24 // Libraries includes
25
26
27 // Namespace includes
28 #include "EvaluationSettings.h"
29
30
31 // Other includes
32 #include "Config/CConfiguration.h"
33
34 #include "Utilities/Container/CLinker.h"
35
36 // Logger includes
37 #include "Logger/CLogger.h"
38
39
40
41 namespace Konclude {
42
43 using namespace Config;
44 using namespace Utilities::Container;
45
46 namespace Test {
47
48 namespace Evaluation {
49
50
51 /*!
52 *
53 * \class CReasonerEvaluationDataValue
54 * \author Andreas Steigmiller
55 * \version 0.1
56 * \brief TODO
57 *
58 */
59 class CReasonerEvaluationDataValue : public CLinkerBase<CReasonerEvaluationDataValue*,CReasonerEvaluationDataValue> {
60 // public methods
61 public:
62 //! Constructor
63 CReasonerEvaluationDataValue();
64
65 //! Destructor
66 virtual ~CReasonerEvaluationDataValue();
67
68 virtual CReasonerEvaluationDataValue* getCopy() = 0;
69 virtual QString generateString() = 0;
70
71 static const cint64 REDFDATANOTAVAILABLE = 0x0001;
72 static const cint64 REDFDATAERROROCCURED = 0x0002;
73
74 bool hasDataFlags(cint64 flags, bool testPartial);
75 CReasonerEvaluationDataValue* setDataFlags(cint64 flags);
76 CReasonerEvaluationDataValue* clearDataFlags(cint64 flags);
77 CReasonerEvaluationDataValue* setDataFlags(cint64 flags, bool value);
78
79 bool hasErrorOccuredFlag();
80 bool hasDataNotAvailableFlag();
81
82 CReasonerEvaluationDataValue* setErrorOccuredFlag(bool value = true);
83 CReasonerEvaluationDataValue* setDataNotAvailableFlag(bool value = true);
84
85 cint64 getDataFlags();
86
87 // protected methods
88 protected:
89
90 // protected variables
91 protected:
92 cint64 mDataFlags;
93
94 // private methods
95 private:
96
97 // private variables
98 private:
99
100 };
101
102 }; // end namespace Evaluation
103
104 }; // end namespace Test
105
106 }; // end namespace Konclude
107
108 #endif // KONCLUDE_TEST_EVALUATION_CREASONEREVALUATIONDATAVALUE_H