Medical Imaging Interaction Toolkit  2018.4.99-389bf124
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 
142 {
143 
144 private:
145  int fValue;
146 
147  static const int FALSE_VALUE;
148  static const int TRUE_VALUE;
149  static const int NOT_LOADED_VALUE;
150 
151 public:
152 
159 
160 private:
161 
162  static const SmartPointer<const EvaluationResult> AND[3][3];
163  static const SmartPointer<const EvaluationResult> OR[3][3];
164  static const SmartPointer<const EvaluationResult> NOT[3];
165 
166  /*
167  * No instances outside of <code>EvaluationResult</code>
168  */
169  EvaluationResult(int value);
170 
172 
173 public:
174 
176 
177  bool operator==(const Object*) const override;
178 
179  bool operator!=(const Object*) const;
180 
189 
198 
204  EvaluationResult::ConstPointer Not() const;
205 
218  static EvaluationResult::ConstPointer ValueOf(bool b);
219 
226  QString ToString() const override;
227 };
228 
229 } // namespace berry
230 
231 #endif /*BERRYEVALUATIONRESULT_*/
MITKCORE_EXPORT bool operator!=(const InteractionEvent &a, const InteractionEvent &b)
static const SmartPointer< const EvaluationResult > FALSE_EVAL
Light weight base class for most BlueBerry classes.
Definition: berryObject.h:72
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 > TRUE_EVAL
static const SmartPointer< const EvaluationResult > NOT_LOADED