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