| # Gaudi Framework, version v22r2 |

Home |  | Generated: Tue May 10 2011

Public Member Functions | Protected Member Functions | Private Attributes

# 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.

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

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

Definition at line 28 of file ToolHandle.h.

    {};

## Member Function Documentation

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

Definition at line 34 of file ToolHandle.h.

                            {
         return m_createIf;
      }

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

Definition at line 30 of file ToolHandle.h.

                            {
         return !m_parent;
      }

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

Definition at line 38 of file ToolHandle.h.

                                       {
         return m_parent;
      }

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

Definition at line 45 of file ToolHandle.h.

                                                                          {
        return parent ? "PrivateTool" : "PublicTool";
      }

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

Definition at line 49 of file ToolHandle.h.

                                                                       {
        if (parent) {
          //SmartIF<INamedInterface> pNamed(const_cast<IInterface*>(parent));
          //if (pNamed.isValid()) {
          const INamedInterface* pNamed = dynamic_cast<const INamedInterface*>(parent);
          if (pNamed) {
            return pNamed->name();
          } else {
            return "";
          }
        } else {
          return "ToolSvc";
        }
      }

## Member Data Documentation

bool ToolHandleInfo::m_createIf`[private]`

Definition at line 66 of file ToolHandle.h.

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

Definition at line 65 of file ToolHandle.h.

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

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

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines