Gaudi Framework, version v23r2

Home   Generated: Thu Jun 28 2012
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:
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.

    : 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

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 Thu Jun 28 2012 23:27:46 for Gaudi Framework, version v23r2 by Doxygen version 1.7.2 written by Dimitri van Heesch, © 1997-2004