Medical Imaging Interaction Toolkit  2023.12.00
Medical Imaging Interaction Toolkit
berryExecutionEvent.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 BERRYEXECUTIONEVENT_H_
14 #define BERRYEXECUTIONEVENT_H_
15 
16 #include <berryMacros.h>
17 
18 #include "berryCommand.h"
19 
20 #include <QHash>
21 
22 namespace berry {
23 
38 
39 public:
40 
42 
43  typedef QHash<QString, QString> ParameterMap;
44 
45 private:
46 
53  const Object::Pointer applicationContext;
54 
58  const Command::ConstPointer command;
59 
65  const ParameterMap parameters;
66 
72  const Object::ConstPointer trigger;
73 
74 
75 public:
76 
83 
100  ExecutionEvent(const Command::ConstPointer& command, const ParameterMap& parameters,
101  const Object::ConstPointer& trigger, const Object::Pointer& applicationContext);
102 
109  const Object::Pointer GetApplicationContext() const;
110 
116  const Command::ConstPointer GetCommand() const;
117 
134  const Object::ConstPointer GetObjectParameterForExecution(const QString& parameterId) const;
135 
144  QString GetParameter(const QString &parameterId) const;
145 
151  const ParameterMap& GetParameters() const;
152 
158  const Object::ConstPointer GetTrigger() const;
159 
164  QString ToString() const override;
165 };
166 
167 }
168 
169 #endif /*BERRYEXECUTIONEVENT_H_*/
berry::ExecutionEvent::ParameterMap
QHash< QString, QString > ParameterMap
Definition: berryExecutionEvent.h:43
berryMacros.h
berry::SmartPointer< Self >
BERRY_COMMANDS
#define BERRY_COMMANDS
Definition: org_blueberry_core_commands_Export.h:26
berry::Object
Light weight base class for most BlueBerry classes.
Definition: berryObject.h:72
berry::Object::ConstPointer
berry::SmartPointer< const Self > ConstPointer
Definition: berryObject.h:83
berryCommand.h
berryObjectMacro
#define berryObjectMacro(...)
Definition: berryMacros.h:33
berry
Definition: QmitkPropertyItemModel.h:24
berry::ExecutionEvent
Definition: berryExecutionEvent.h:37