+++ /dev/null
-#include <msp/core/maputils.h>
-#include "tool.h"
-#include "toolchain.h"
-
-using namespace std;
-using namespace Msp;
-
-Toolchain::~Toolchain()
-{
- for(ToolMap::iterator i=tools.begin(); i!=tools.end(); ++i)
- delete i->second;
-}
-
-void Toolchain::add_tool(Tool *tool)
-{
- insert_unique(tools, tool->get_tag(), tool);
-}
-
-const Tool &Toolchain::get_tool(const string &tag) const
-{
- return *get_item(tools, tag);
-}
-
-const Tool *Toolchain::get_tool_for_suffix(const string &suffix, bool aux) const
-{
- for(ToolMap::const_iterator i=tools.begin(); i!=tools.end(); ++i)
- if(i->second->accepts_suffix(suffix, aux))
- return i->second;
-
- return 0;
-}