|
Gaudi Framework, version v23r2 |
| Home | Generated: Thu Jun 28 2012 |
General info and helper functions for toolhandles and arrays. More...
#include <ToolHandle.h>


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 |
General info and helper functions for toolhandles and arrays.
Definition at line 21 of file ToolHandle.h.
| 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.
{};
| 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";
}
}
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.