9 ToolHandleBase::ToolHandleBase(
const std::string& typeAndName, INamedInterface*
parent )
10 : m_typeAndName( typeAndName ),
m_type(), m_name(), m_parent(
parent) {
12 setTypeAndName(typeAndName);
15 void ToolHandleBase::setTypeAndName(
const std::string& typeAndName) {
16 m_typeAndName = typeAndName;
19 if( (
pos = m_typeAndName.find(
'/' ) ) == std::string::npos ) {
23 m_name = m_typeAndName;
27 m_name = m_typeAndName.substr(
pos + 1 );
31 void ToolHandleBase::setName(
const std::string&
name) {
35 const std::string& ToolHandleBase::typeAndName()
const {
53 return m_parent->name();
54 static const std::string toolSvcName =
"ToolSvc";