Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berryPlatformObject.cpp
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 #include "berryPlatformObject.h"
18 
19 #include "berryPlatform.h"
20 #include "berryIAdapterManager.h"
21 
22 namespace berry {
23 
25 {
26 }
27 
28 Object* PlatformObject::GetAdapter(const QString& adapter) const
29 {
30  IAdapterManager* adapterManager = Platform::GetAdapterManager();
31  if (adapterManager)
32  {
33  return adapterManager->GetAdapter(this, adapter);
34  }
35  else
36  {
37  return nullptr;
38  }
39 }
40 
41 }
Light weight base class for most BlueBerry classes.
Definition: berryObject.h:78
A * GetAdapter(const Object *adaptable)
static IAdapterManager * GetAdapterManager()