34 template<
typename W>
static StatusCode
setProperty(
IAsgTool* tool,
const std::string& property, ToolHandle<W>&& value) {
35 if(!tool)
return StatusCode::FAILURE;
36 std::string subToolName(value.name());
37 size_t start_pos = subToolName.find(tool->name()+
".");
38 if(start_pos!=std::string::npos) { subToolName.replace( start_pos, tool->name().length()+1,
"" ); }
static StatusCode setProperty(IAsgTool *tool, const std::string &property, W &&value)
Helper method for calling setProperty on an interface class Usage: asg::setProperty( myTool ,...