Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
berryExecutionEvent.h
Go to the documentation of this file.
1 /*===================================================================
2 
3 BlueBerry Platform
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef BERRYEXECUTIONEVENT_H_
18 #define BERRYEXECUTIONEVENT_H_
19 
20 #include <berryMacros.h>
21 
22 #include "berryCommand.h"
23 
24 #include <QHash>
25 
26 namespace berry {
27 
42 
43 public:
44 
46 
47  typedef QHash<QString, QString> ParameterMap;
48 
49 private:
50 
57  const Object::Pointer applicationContext;
58 
62  const Command::ConstPointer command;
63 
69  const ParameterMap parameters;
70 
76  const Object::ConstPointer trigger;
77 
78 
79 public:
80 
87 
104  ExecutionEvent(const Command::ConstPointer& command, const ParameterMap& parameters,
105  const Object::ConstPointer& trigger, const Object::Pointer& applicationContext);
106 
113  const Object::Pointer GetApplicationContext() const;
114 
120  const Command::ConstPointer GetCommand() const;
121 
138  const Object::ConstPointer GetObjectParameterForExecution(const QString& parameterId) const;
139 
148  QString GetParameter(const QString &parameterId) const;
149 
155  const ParameterMap& GetParameters() const;
156 
162  const Object::ConstPointer GetTrigger() const;
163 
168  QString ToString() const override;
169 };
170 
171 }
172 
173 #endif /*BERRYEXECUTIONEVENT_H_*/
berry::SmartPointer< const Self > ConstPointer
Definition: berryObject.h:89
Light weight base class for most BlueBerry classes.
Definition: berryObject.h:78
#define berryObjectMacro(...)
Definition: berryMacros.h:37
QHash< QString, QString > ParameterMap