Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berryEvaluationResult.h
Go to the documentation of this file.
1 /*===================================================================
2 
3 BlueBerry Platform
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef BERRYEVALUATIONRESULT_
18 #define BERRYEVALUATIONRESULT_
19 
20 #include <string>
21 
23 
24 #include <berryObject.h>
25 
26 namespace berry {
27 
146 {
147 
148 private:
149  int fValue;
150 
151  static const int FALSE_VALUE;
152  static const int TRUE_VALUE;
153  static const int NOT_LOADED_VALUE;
154 
155 public:
156 
163 
164 private:
165 
166  static const SmartPointer<const EvaluationResult> AND[3][3];
167  static const SmartPointer<const EvaluationResult> OR[3][3];
168  static const SmartPointer<const EvaluationResult> NOT[3];
169 
170  /*
171  * No instances outside of <code>EvaluationResult</code>
172  */
173  EvaluationResult(int value);
174 
176 
177 public:
178 
180 
181  bool operator==(const Object*) const override;
182 
183  bool operator!=(const Object*) const;
184 
193 
202 
208  EvaluationResult::ConstPointer Not() const;
209 
222  static EvaluationResult::ConstPointer ValueOf(bool b);
223 
230  QString ToString() const override;
231 };
232 
233 } // namespace berry
234 
235 #endif /*BERRYEVALUATIONRESULT_*/
static const SmartPointer< const EvaluationResult > FALSE_EVAL
Light weight base class for most BlueBerry classes.
Definition: berryObject.h:78
Implements transparent reference counting.
#define berryObjectMacro(...)
Definition: berryMacros.h:37
static const SmartPointer< const EvaluationResult > TRUE_EVAL
static const SmartPointer< const EvaluationResult > NOT_LOADED