Medical Imaging Interaction Toolkit  2024.12.99-0da743f6
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_*/
berry::EvaluationResult::TRUE_EVAL
static const SmartPointer< const EvaluationResult > TRUE_EVAL
Definition: berryEvaluationResult.h:132
berry::EvaluationResult::NOT_LOADED
static const SmartPointer< const EvaluationResult > NOT_LOADED
Definition: berryEvaluationResult.h:134
berry::EvaluationResult
Definition: berryEvaluationResult.h:117
berry::SmartPointer
Implements transparent reference counting.
Definition: berryICommandCategoryListener.h:21
org_blueberry_core_expressions_Export.h
berry::Object
Light weight base class for most BlueBerry classes.
Definition: berryObject.h:72
mitk::operator!=
MITKCORE_EXPORT bool operator!=(const InteractionEvent &a, const InteractionEvent &b)
mitk::operator==
MITKCORE_EXPORT bool operator==(const InteractionEvent &a, const InteractionEvent &b)
berry::EvaluationResult::FALSE_EVAL
static const SmartPointer< const EvaluationResult > FALSE_EVAL
Definition: berryEvaluationResult.h:130
berryObjectMacro
#define berryObjectMacro(...)
Definition: berryMacros.h:31
BERRY_EXPRESSIONS
#define BERRY_EXPRESSIONS
Definition: org_blueberry_core_expressions_Export.h:26
berryObject.h
berry
Definition: QmitkPropertyItemModel.h:24