Gaudi Framework, version v23r6

Home   Generated: Wed Jan 30 2013
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
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]

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 
)
inlineprotected

Definition at line 23 of file ToolHandle.h.

{}
virtual ToolHandleInfo::~ToolHandleInfo ( )
inlinevirtual

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:

Generated at Wed Jan 30 2013 17:13:49 for Gaudi Framework, version v23r6 by Doxygen version 1.8.2 written by Dimitri van Heesch, © 1997-2004