Medical Imaging Interaction Toolkit  2018.4.99-6a3ea89d
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 
60 struct BERRY_UI_QT IMemento: public Object
61 {
63 
70  static const QString TAG_ID; // = "IMemento.internal.id";
71 
84  virtual IMemento::Pointer CreateChild(const QString& type) = 0;
85 
100  virtual IMemento::Pointer CreateChild(const QString& type,
101  const QString& id) = 0;
102 
109  virtual IMemento::Pointer GetChild(const QString& type) const = 0;
110 
117  virtual QList<IMemento::Pointer>
118  GetChildren(const QString& type) const = 0;
119 
128  virtual bool GetFloat(const QString& key, double& value) const = 0;
129 
138  virtual bool GetInteger(const QString& key, int& value) const = 0;
139 
147  virtual bool GetString(const QString& key, QString& value) const = 0;
148 
156  virtual bool GetBoolean(const QString& key, bool& value) const = 0;
157 
165  virtual QString GetTextData() const = 0;
166 
173  virtual QList<QString> GetAttributeKeys() const = 0;
174 
182  virtual QString GetType() const = 0;
183 
190  virtual QString GetID() const = 0;
191 
198  virtual void PutFloat(const QString& key, double value) = 0;
199 
206  virtual void PutInteger(const QString& key, int value) = 0;
207 
214  virtual void PutMemento(IMemento::Pointer memento) = 0;
215 
222  virtual void PutString(const QString& key, const QString& value) = 0;
223 
230  virtual void PutBoolean(const QString& key, bool value) = 0;
231 
239  virtual void PutTextData(const QString& data) = 0;
240 
241  ~IMemento() override;
242 };
243 
244 } // namespace berry
245 
246 #endif /*BERRYIMEMENTO_H_*/
Light weight base class for most BlueBerry classes.
Definition: berryObject.h:72
static const QString TAG_ID
Definition: berryIMemento.h:70
#define berryObjectMacro(...)
Definition: berryMacros.h:33
#define BERRY_UI_QT