28 const std::vector<const IComponent*>& v = it.second;
29 const auto vpos = std::find(v.begin(), v.end(), s);
30 if (vpos == std::end(v))
32 const std::string& tag = it.first;
35 return tag +
"_" + std::to_string(vpos - v.begin() + 1);
37 throw std::runtime_error(
"BUG: object not found in ComponentKeyHandler");
Defines class ComponentKeyHandler.
std::map< std::string, std::vector< const IComponent * > > m_objects
void insertModel(const std::string &tag, const IComponent *s)
std::string obj2key(const IComponent *s) const
Root of class hierarchy for sample and instrument model.