Medical Imaging Interaction Toolkit  2021.02.99-89548602
Medical Imaging Interaction Toolkit
berryEvaluationResult.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef BERRYEVALUATIONRESULT_
14 #define BERRYEVALUATIONRESULT_
15 
16 #include <string>
17 
19 
20 #include <berryObject.h>
21 
22 namespace berry {
23 
118 {
119 
120 private:
121  int fValue;
122 
123  static const int FALSE_VALUE;
124  static const int TRUE_VALUE;
125  static const int NOT_LOADED_VALUE;
126 
127 public:
128 
135 
136 private:
137 
138  static const SmartPointer<const EvaluationResult> AND[3][3];
139  static const SmartPointer<const EvaluationResult> OR[3][3];
140  static const SmartPointer<const EvaluationResult> NOT[3];
141 
142  /*
143  * No instances outside of <code>EvaluationResult</code>
144  */
145  EvaluationResult(int value);
146 
148 
149 public:
150 
152 
153  bool operator==(const Object*) const override;
154 
155  bool operator!=(const Object*) const;
156 
165 
174 
180  EvaluationResult::ConstPointer Not() const;
181 
194  static EvaluationResult::ConstPointer ValueOf(bool b);
195 
202  QString ToString() const override;
203 };
204 
205 } // namespace berry
206 
207 #endif /*BERRYEVALUATIONRESULT_*/
MITKCORE_EXPORT bool operator==(const InteractionEvent &a, const InteractionEvent &b)
static const SmartPointer< const EvaluationResult > TRUE_EVAL
Light weight base class for most BlueBerry classes.
Definition: berryObject.h:72
static const SmartPointer< const EvaluationResult > NOT_LOADED
Implements transparent reference counting.
MITKCORE_EXPORT bool operator!=(const InteractionEvent &a, const InteractionEvent &b)
#define berryObjectMacro(...)
Definition: berryMacros.h:33
static const SmartPointer< const EvaluationResult > FALSE_EVAL