The Gaudi Framework
v26r1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
ComponentManager.cpp
Go to the documentation of this file.
1
/*
2
* ComponentManager.cpp
3
*
4
* Created on: Feb 20, 2009
5
* Author: Marco Clemencic
6
*/
7
8
#include "GaudiKernel/ComponentManager.h"
9
10
//------------------------------------------------------------------------------
11
// Constructor
12
ComponentManager::ComponentManager
(
IInterface
*application,
const
InterfaceID
&baseIID):
13
m_application(application), m_stateful(application), m_basicInterfaceId(baseIID)
14
{
15
}
16
17
//------------------------------------------------------------------------------
18
// Basic interface id of the managed components.
19
const
InterfaceID
&
ComponentManager::componentBaseInterface
()
const
{
20
return
m_basicInterfaceId
;
21
}
22
23
//------------------------------------------------------------------------------
24
// Virtual destructor
25
ComponentManager::~ComponentManager
() {
26
}
27
28
//------------------------------------------------------------------------------
29
// queryInterface implementation that falls back on the owner.
30
StatusCode
ComponentManager::queryInterface
(
const
InterfaceID
&
iid
,
void
** pinterface)
31
{
32
// try local interfaces
33
StatusCode
sc
= base_class::queryInterface(iid,pinterface);
34
if
(sc.
isSuccess
())
return
sc;
35
// fall back on the owner
36
return
m_application
->queryInterface(iid, pinterface);
37
}
GaudiKernel
src
Lib
ComponentManager.cpp
Generated on Mon Feb 16 2015 11:56:56 for The Gaudi Framework by
1.8.2