![]() |
|
|
Generated: 18 Jul 2008 |
#include <ToolHandle.h>
Inheritance diagram for ToolHandleInfo:


Definition at line 20 of file 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 |
| ToolHandleInfo::ToolHandleInfo | ( | const IInterface * | parent = 0, |
|
| bool | createIf = true | |||
| ) | [inline, protected] |
| virtual ToolHandleInfo::~ToolHandleInfo | ( | ) | [inline, virtual] |
| bool ToolHandleInfo::isPublic | ( | ) | const [inline] |
Definition at line 29 of file ToolHandle.h.
References m_parent.
00029 { 00030 return !m_parent; 00031 }
| bool ToolHandleInfo::createIf | ( | ) | const [inline] |
Definition at line 33 of file ToolHandle.h.
References m_createIf.
Referenced by ToolHandleArray< T >::push_back(), and ToolHandle< T >::retrieve().
00033 { 00034 return m_createIf; 00035 }
| const IInterface* ToolHandleInfo::parent | ( | ) | const [inline] |
Definition at line 37 of file ToolHandle.h.
References m_parent.
Referenced by ToolHandleArray< T >::push_back(), ToolHandle< T >::retrieve(), toolComponentType(), and toolParentName().
00037 { 00038 return m_parent; 00039 }
| const std::string ToolHandleInfo::toolComponentType | ( | const IInterface * | parent | ) | const [inline] |
Definition at line 44 of file ToolHandle.h.
References parent().
00044 { 00045 return parent ? "PrivateTool" : "PublicTool"; 00046 }
| const std::string ToolHandleInfo::toolParentName | ( | const IInterface * | parent | ) | const [inline] |
Definition at line 48 of file ToolHandle.h.
References INamedInterface::name(), and parent().
00048 { 00049 if (parent) { 00050 const INamedInterface* pNamed = dynamic_cast<const INamedInterface*>(parent); 00051 if (pNamed) { 00052 return pNamed->name(); 00053 } else { 00054 return ""; 00055 } 00056 } else { 00057 return "ToolSvc"; 00058 } 00059 }
const IInterface* ToolHandleInfo::m_parent [private] |
bool ToolHandleInfo::m_createIf [private] |