X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftoolchain.h;h=8449680409884d12d2801dc760212fa70e8db886;hb=HEAD;hp=34fc0a2b6651a77eda77c44c97c4679edd8057db;hpb=d917c5fd92e7ae50b35e7024a0a2365438bead72;p=builder.git diff --git a/source/toolchain.h b/source/toolchain.h deleted file mode 100644 index 34fc0a2..0000000 --- a/source/toolchain.h +++ /dev/null @@ -1,37 +0,0 @@ -#ifndef TOOLCHAIN_H_ -#define TOOLCHAIN_H_ - -#include -#include -#include - -class Tool; - -/** -A container for tools. Performs lookup based on tag or filename extension. -*/ -class Toolchain -{ -private: - std::string name; - int priority = 0; - std::map tools; - std::vector chains; - -protected: - Toolchain(const std::string &n, unsigned p): name(n), priority(p) { } -public: - Toolchain() = default; - ~Toolchain(); - - const std::string &get_name() const { return name; } - int get_priority() const { return priority; } - void add_tool(Tool *); - void add_toolchain(Toolchain *); - bool has_tool(const std::string &) const; - Tool &get_tool(const std::string &) const; - Tool *get_tool_for_suffix(const std::string &, bool = false) const; - const std::vector &get_toolchains() { return chains; } -}; - -#endif