Gaudi Framework, version v22r0

Home   Generated: 9 Feb 2011

ToolHandleInfo Class Reference

General info and helper functions for toolhandles and arrays. More...

#include <ToolHandle.h>

Inheritance diagram for ToolHandleInfo:
Inheritance graph
[legend]
Collaboration diagram for ToolHandleInfo:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual ~ToolHandleInfo ()
bool isPublic () const
bool createIf () const
const IInterfaceparent () const
const std::string toolComponentType (const IInterface *parent) const
const std::string toolParentName (const IInterface *parent) const

Protected Member Functions

 ToolHandleInfo (const IInterface *parent=0, bool createIf=true)

Private Attributes

const IInterfacem_parent
bool m_createIf

Detailed Description

General info and helper functions for toolhandles and arrays.

Definition at line 21 of file ToolHandle.h.


Constructor & Destructor Documentation

ToolHandleInfo::ToolHandleInfo ( const IInterface parent = 0,
bool  createIf = true 
) [inline, protected]

Definition at line 23 of file ToolHandle.h.

00024     : m_parent(parent), m_createIf(createIf)
00025     {}

virtual ToolHandleInfo::~ToolHandleInfo (  )  [inline, virtual]

Definition at line 28 of file ToolHandle.h.

00028 {};


Member Function Documentation

bool ToolHandleInfo::createIf (  )  const [inline]

Definition at line 34 of file ToolHandle.h.

00034                         {
00035      return m_createIf;
00036   }

bool ToolHandleInfo::isPublic (  )  const [inline]

Definition at line 30 of file ToolHandle.h.

00030                         {
00031      return !m_parent;
00032   }

const IInterface* ToolHandleInfo::parent (  )  const [inline]

Definition at line 38 of file ToolHandle.h.

00038                                    {
00039      return m_parent;
00040   }

const std::string ToolHandleInfo::toolComponentType ( const IInterface parent  )  const [inline]

Definition at line 45 of file ToolHandle.h.

00045                                                                       {
00046     return parent ? "PrivateTool" : "PublicTool";
00047   }

const std::string ToolHandleInfo::toolParentName ( const IInterface parent  )  const [inline]

Definition at line 49 of file ToolHandle.h.

00049                                                                    {
00050     if (parent) {
00051       //SmartIF<INamedInterface> pNamed(const_cast<IInterface*>(parent));
00052       //if (pNamed.isValid()) {
00053       const INamedInterface* pNamed = dynamic_cast<const INamedInterface*>(parent);
00054       if (pNamed) {
00055         return pNamed->name();
00056       } else {
00057         return "";
00058       }
00059     } else {
00060       return "ToolSvc";
00061     }
00062   }


Member Data Documentation

Definition at line 66 of file ToolHandle.h.

Definition at line 65 of file ToolHandle.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines

Generated at Wed Feb 9 16:32:00 2011 for Gaudi Framework, version v22r0 by Doxygen version 1.6.2 written by Dimitri van Heesch, © 1997-2004