| # Gaudi Framework, version v21r10p1 |

Home |  | Generated: 29 Jul 2010

# ToolHandleInfo Class Reference

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

`#include <ToolHandle.h>`

Inheritance diagram for ToolHandleInfo:

[legend]
Collaboration diagram for ToolHandleInfo:

[legend]

List of all members.

## Public Member Functions
virtual | ~ToolHandleInfo ()
bool | isPublic () const
bool | createIf () const
const IInterface * | parent () 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 IInterface * | m_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::isPublic | ( |  | ) | const`[inline]`

Definition at line 30 of file ToolHandle.h.

    00030                         {
    00031      return !m_parent;
    00032   }

bool ToolHandleInfo::createIf | ( |  | ) | const`[inline]`

Definition at line 34 of file ToolHandle.h.

    00034                         {
    00035      return m_createIf;
    00036   }

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

const IInterface* ToolHandleInfo::m_parent`[private]`

Definition at line 65 of file ToolHandle.h.

bool ToolHandleInfo::m_createIf`[private]`

Definition at line 66 of file ToolHandle.h.

The documentation for this class was generated from the following file:

- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v21r10p1/GaudiKernel/GaudiKernel/ToolHandle.h