00001 /*========================================================================= 00002 00003 Program: Medical Imaging & Interaction Toolkit 00004 Language: C++ 00005 Date: $Date$ 00006 Version: $Revision$ 00007 00008 Copyright (c) German Cancer Research Center, Division of Medical and 00009 Biological Informatics. All rights reserved. 00010 See MITKCopyright.txt or https://www.mitk.org/copyright.html for details. 00011 00012 This software is distributed WITHOUT ANY WARRANTY; without even 00013 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00014 PURPOSE. See the above copyright notices for more information. 00015 00016 =========================================================================*/ 00017 00018 00019 #ifndef MITKNODEPREDICATEOR_H_HEADER_INCLUDED_ 00020 #define MITKNODEPREDICATEOR_H_HEADER_INCLUDED_ 00021 00022 #include "mitkNodePredicateCompositeBase.h" 00023 00024 namespace mitk { 00025 00026 //##Documentation 00027 //## @brief Composite predicate that forms a logical OR relation from its child predicates 00028 //## 00029 //## 00030 //## 00031 //## 00032 //## @ingroup DataStorage 00033 class MITK_CORE_EXPORT NodePredicateOr : public NodePredicateCompositeBase 00034 { 00035 public: 00036 mitkClassMacro(NodePredicateOr, NodePredicateCompositeBase); 00037 itkFactorylessNewMacro(NodePredicateOr); 00038 mitkNewMacro2Param(NodePredicateOr, const NodePredicateBase*, const NodePredicateBase*); 00039 00040 //##Documentation 00041 //## @brief Standard Destructor 00042 virtual ~NodePredicateOr(); 00043 00044 //##Documentation 00045 //## @brief Checks, if the node fulfills any of the subpredicates conditions 00046 virtual bool CheckNode(const DataNode* node) const; 00047 protected: 00048 //##Documentation 00049 //## @brief Constructor 00050 NodePredicateOr(); 00051 //##Documentation 00052 //## @brief Convenience constructor that adds p1 and p2 to list of child predicates 00053 NodePredicateOr(const NodePredicateBase* p1, const NodePredicateBase* p2); 00054 }; 00055 00056 } // namespace mitk 00057 00058 #endif /* MITKNODEPREDICATEOR_H_HEADER_INCLUDED_ */ 00059