16ServiceHandleBase(
const std::string& typeAndName,
17 const std::string& parentName )
18 : m_typeAndName( typeAndName ), m_type(), m_name(), m_parentName(
parentName)
20 setTypeAndName(typeAndName);
25void ServiceHandleBase::setTypeAndName(
const std::string& typeAndName)
27 m_typeAndName = typeAndName;
30 if( ( pos = m_typeAndName.find(
'/' ) ) == std::string::npos )
34 m_type = m_typeAndName;
35 m_name = m_typeAndName;
39 m_type = m_typeAndName.substr( 0, pos );
40 m_name = m_typeAndName.substr( pos + 1 );
46void ServiceHandleBase::setName(
const std::string& name)
53const std::string& ServiceHandleBase::typeAndName()
const
60const std::string& ServiceHandleBase::type()
const
67const std::string& ServiceHandleBase::name()
const
74const std::string& ServiceHandleBase::parentName()
const