Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berryIObjectWithState.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 BERRYIOBJECTWITHSTATE_H_
18 #define BERRYIOBJECTWITHSTATE_H_
19 
20 #include "berryObject.h"
21 
23 
24 namespace berry {
25 
26 class State;
27 
39 struct BERRY_COMMANDS IObjectWithState : public virtual Object
40 {
41 
43 
44 
54  virtual void AddState(const QString& id, const SmartPointer<State>& state) = 0;
55 
65  virtual SmartPointer<State> GetState(const QString& stateId) const = 0;
66 
73  virtual QList<QString> GetStateIds() const = 0;
74 
82  virtual void RemoveState(const QString& stateId) = 0;
83 };
84 
85 }
86 
87 #endif /*BERRYIOBJECTWITHSTATE_H_*/
Light weight base class for most BlueBerry classes.
Definition: berryObject.h:78
Implements transparent reference counting.
#define berryObjectMacro(...)
Definition: berryMacros.h:37