Medical Imaging Interaction Toolkit  2021.02.99-e55a5d2f
Medical Imaging Interaction Toolkit
berryIObjectWithState.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 BERRYIOBJECTWITHSTATE_H_
14 #define BERRYIOBJECTWITHSTATE_H_
15 
16 #include "berryObject.h"
17 
19 
20 namespace berry {
21 
22 class State;
23 
35 struct BERRY_COMMANDS IObjectWithState : public virtual Object
36 {
37 
39 
50  virtual void AddState(const QString& id, const SmartPointer<State>& state) = 0;
51 
61  virtual SmartPointer<State> GetState(const QString& stateId) const = 0;
62 
69  virtual QList<QString> GetStateIds() const = 0;
70 
78  virtual void RemoveState(const QString& stateId) = 0;
79 };
80 
81 }
82 
83 #endif /*BERRYIOBJECTWITHSTATE_H_*/
Light weight base class for most BlueBerry classes.
Definition: berryObject.h:72
Implements transparent reference counting.
#define berryObjectMacro(...)
Definition: berryMacros.h:33