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
16
#include <
org_mitk_core_jobs_Export.h
>
17
18
#include "
berryISchedulingRule.h
"
19
#include "
berryObject.h
"
20
#include "
mitkDataNode.h
"
21
#include "
mitkDataStorage.h
"
22
#include "
mitkStandaloneDataStorage.h
"
23
24
namespace
mitk
{
25
81
class
MITK_JOBS_EXPORT
DataStorageAccessRule
:
public
berry::ISchedulingRule
{
82
83
public
:
84
85
86
enum
RuleType
{ADD_RULE = 0, REMOVE_RULE} ;
87
88
RuleType
m_Rule
;
89
90
berryObjectMacro
(
DataStorageAccessRule
);
91
92
DataStorageAccessRule
(
mitk::DataStorage::Pointer
myDataStorage,
mitk::DataNode::Pointer
myDataNode,
93
DataStorageAccessRule::RuleType
myRule) ;
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_ */
mitkDataStorage.h
mitk::DataStorageAccessRule::RuleType
RuleType
Definition:
mitkDataStorageAccessRule.h:86
berryISchedulingRule.h
mitk
DataCollection - Class to facilitate loading/accessing structured data.
Definition:
RenderingTests.dox:1
mitk::DataStorageAccessRule
The DataStorageAccessRule inherits from the ISchedulingRule class. DataStorageAccessRule are used to ...
Definition:
mitkDataStorageAccessRule.h:81
berry::SmartPointer< Self >
org_mitk_core_jobs_Export.h
MITK_JOBS_EXPORT
#define MITK_JOBS_EXPORT
Definition:
org_mitk_core_jobs_Export.h:26
mitkDataNode.h
berryObjectMacro
#define berryObjectMacro(...)
Definition:
berryMacros.h:33
berry::ISchedulingRule
Definition:
berryISchedulingRule.h:45
mitkStandaloneDataStorage.h
berryObject.h
mitk::DataStorageAccessRule::m_Rule
RuleType m_Rule
Definition:
mitkDataStorageAccessRule.h:88
itk::SmartPointer< Self >
src
MITK
Plugins
org.mitk.core.jobs
src
mitkDataStorageAccessRule.h
Generated on Tue Jul 5 2022 02:16:47 for Medical Imaging Interaction Toolkit by
1.8.13