X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftoolchain.cpp;h=953fe1147a660df9f429f7a8f7e9f7cef2f709bc;hb=HEAD;hp=9d234038279d07d4ce41232c63e7ab5acec63f40;hpb=9e28243c9687608ec3c32954b4031490296ae877;p=builder.git diff --git a/source/toolchain.cpp b/source/toolchain.cpp deleted file mode 100644 index 9d23403..0000000 --- a/source/toolchain.cpp +++ /dev/null @@ -1,31 +0,0 @@ -#include -#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); -} - -Tool &Toolchain::get_tool(const string &tag) const -{ - return *get_item(tools, tag); -} - -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; -}