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