Medical Imaging Interaction Toolkit  2024.06.00
Medical Imaging Interaction Toolkit
berryIMemento.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 BERRYIMEMENTO_H_
14 #define BERRYIMEMENTO_H_
15 
16 #include <berryMacros.h>
17 #include <berryObject.h>
18 
20 
21 #include <QString>
22 
23 namespace berry
24 {
25 
58 struct BERRY_UI_QT IMemento: public Object
59 {
61 
68  static const QString TAG_ID; // = "IMemento.internal.id";
69 
82  virtual IMemento::Pointer CreateChild(const QString& type) = 0;
83 
98  virtual IMemento::Pointer CreateChild(const QString& type,
99  const QString& id) = 0;
100 
107  virtual IMemento::Pointer GetChild(const QString& type) const = 0;
108 
115  virtual QList<IMemento::Pointer>
116  GetChildren(const QString& type) const = 0;
117 
126  virtual bool GetFloat(const QString& key, double& value) const = 0;
127 
136  virtual bool GetInteger(const QString& key, int& value) const = 0;
137 
145  virtual bool GetString(const QString& key, QString& value) const = 0;
146 
154  virtual bool GetBoolean(const QString& key, bool& value) const = 0;
155 
163  virtual QString GetTextData() const = 0;
164 
171  virtual QList<QString> GetAttributeKeys() const = 0;
172 
180  virtual QString GetType() const = 0;
181 
188  virtual QString GetID() const = 0;
189 
196  virtual void PutFloat(const QString& key, double value) = 0;
197 
204  virtual void PutInteger(const QString& key, int value) = 0;
205 
212  virtual void PutMemento(IMemento::Pointer memento) = 0;
213 
220  virtual void PutString(const QString& key, const QString& value) = 0;
221 
228  virtual void PutBoolean(const QString& key, bool value) = 0;
229 
237  virtual void PutTextData(const QString& data) = 0;
238 
239  ~IMemento() override;
240 };
241 
242 } // namespace berry
243 
244 #endif /*BERRYIMEMENTO_H_*/
org_blueberry_ui_qt_Export.h
berryMacros.h
berry::SmartPointer
Implements transparent reference counting.
Definition: berryICommandCategoryListener.h:21
berry::IMemento::TAG_ID
static const QString TAG_ID
Definition: berryIMemento.h:68
berry::Object
Light weight base class for most BlueBerry classes.
Definition: berryObject.h:72
BERRY_UI_QT
#define BERRY_UI_QT
Definition: org_blueberry_ui_qt_Export.h:26
berry::IMemento
Definition: berryIMemento.h:58
berryObjectMacro
#define berryObjectMacro(...)
Definition: berryMacros.h:31
berryObject.h
berry
Definition: QmitkPropertyItemModel.h:24