Medical Imaging Interaction Toolkit  2022.04.99-194dd5d8
Medical Imaging Interaction Toolkit
mitkDataStorageAccessRule.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 MITKDATASTORAGEACCESSRULE_H_HEADER_INCLUDED_
14 #define MITKDATASTORAGEACCESSRULE_H_HEADER_INCLUDED_
15 
17 
18 #include "berryISchedulingRule.h"
19 #include "berryObject.h"
20 #include "mitkDataNode.h"
21 #include "mitkDataStorage.h"
23 
24 namespace mitk {
25 
82 
83  public:
84 
85 
86  enum RuleType {ADD_RULE = 0, REMOVE_RULE} ;
87 
89 
91 
94 
95  bool Contains (berry::ISchedulingRule::Pointer otherISchedulingRule) const override;
96  bool IsConflicting (berry::ISchedulingRule::Pointer otherISchedulingRule) const override;
97 
98 
99 
100 
101 
102 
103 private:
104 
105 
112  bool CompareTwoAddorRemoveRules() const ;
117  bool CompareAddandRemoveRules(mitk::DataStorageAccessRule::Pointer sptr_otherDataStorageAccessRule) const;
123  bool CompareDataStorages(mitk::DataStorage::Pointer otherDataStorage) const;
129  bool TestDataNode(mitk::DataNode::Pointer dataTreeToBeStored) const;
130 
134  mitk::DataNode::Pointer GetDataNode() const;
135 
139  mitk::DataStorage::Pointer GetDataStorage() const;
140 
141  mitk::DataStorageAccessRule::RuleType GetRuleType() const;
142 
143 
144 
145 
146  DataStorage::Pointer m_sptrMyDataStorage ;
147  DataNode::Pointer m_sptrMyDataNode ;
148 
149 
150  };
151 
152  }
153 
154 #endif /*MITKDATASTORAGEACCESSRULE_H_HEADER_INCLUDED_ */
DataCollection - Class to facilitate loading/accessing structured data.
The DataStorageAccessRule inherits from the ISchedulingRule class. DataStorageAccessRule are used to ...
#define MITK_JOBS_EXPORT
#define berryObjectMacro(...)
Definition: berryMacros.h:33