Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berryIMemento.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 BERRYIMEMENTO_H_
18 #define BERRYIMEMENTO_H_
19 
20 #include <berryMacros.h>
21 #include <berryObject.h>
22 
24 
25 #include <QString>
26 
27 namespace berry
28 {
29 
64 struct BERRY_UI_QT IMemento: public Object
65 {
67 
68 
74  static const QString TAG_ID; // = "IMemento.internal.id";
75 
88  virtual IMemento::Pointer CreateChild(const QString& type) = 0;
89 
104  virtual IMemento::Pointer CreateChild(const QString& type,
105  const QString& id) = 0;
106 
113  virtual IMemento::Pointer GetChild(const QString& type) const = 0;
114 
121  virtual QList<IMemento::Pointer>
122  GetChildren(const QString& type) const = 0;
123 
132  virtual bool GetFloat(const QString& key, double& value) const = 0;
133 
142  virtual bool GetInteger(const QString& key, int& value) const = 0;
143 
151  virtual bool GetString(const QString& key, QString& value) const = 0;
152 
160  virtual bool GetBoolean(const QString& key, bool& value) const = 0;
161 
169  virtual QString GetTextData() const = 0;
170 
177  virtual QList<QString> GetAttributeKeys() const = 0;
178 
186  virtual QString GetType() const = 0;
187 
194  virtual QString GetID() const = 0;
195 
202  virtual void PutFloat(const QString& key, double value) = 0;
203 
210  virtual void PutInteger(const QString& key, int value) = 0;
211 
218  virtual void PutMemento(IMemento::Pointer memento) = 0;
219 
226  virtual void PutString(const QString& key, const QString& value) = 0;
227 
234  virtual void PutBoolean(const QString& key, bool value) = 0;
235 
243  virtual void PutTextData(const QString& data) = 0;
244 
245  virtual ~IMemento();
246 };
247 
248 } // namespace berry
249 
250 #endif /*BERRYIMEMENTO_H_*/
Light weight base class for most BlueBerry classes.
Definition: berryObject.h:78
#define berryObjectMacro(...)
Definition: berryMacros.h:37
#define BERRY_UI_QT