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
13  m_application(application), m_stateful(application), m_basicInterfaceId(baseIID)
14 {
15 }
16 
17 //------------------------------------------------------------------------------
18 // Basic interface id of the managed components.
20  return m_basicInterfaceId;
21 }
22 
23 //------------------------------------------------------------------------------
24 // Virtual destructor
26 }
27 
28 //------------------------------------------------------------------------------
29 // queryInterface implementation that falls back on the owner.
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 }