All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ToolHandleInfo Class Reference

General info and helper functions for toolhandles and arrays. More...

#include </scratch/z5/marcocle/lhcb-release/419/GAUDI/GAUDI_v26r1/InstallArea/x86_64-slc6-gcc48-opt/include/GaudiKernel/ToolHandle.h>

Inheritance diagram for ToolHandleInfo:
Collaboration diagram for ToolHandleInfo:

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

{};
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::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;
}
bool ToolHandleInfo::isPublic ( ) const
inline

Definition at line 30 of file ToolHandle.h.

{
return !m_parent;
}
const IInterface* ToolHandleInfo::parent ( void  ) const
inline

Definition at line 38 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::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";
}
}
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 files: