1 #include <msp/core/maputils.h>
8 Toolchain::~Toolchain()
10 for(ToolMap::iterator i=tools.begin(); i!=tools.end(); ++i)
14 void Toolchain::add_tool(Tool *tool)
16 insert_unique(tools, tool->get_tag(), tool);
19 const Tool &Toolchain::get_tool(const string &tag) const
21 return *get_item(tools, tag);
24 const Tool *Toolchain::get_tool_for_suffix(const string &suffix, bool aux) const
26 for(ToolMap::const_iterator i=tools.begin(); i!=tools.end(); ++i)
27 if(i->second->accepts_suffix(suffix, aux))