X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftool.h;h=41b8c5f24dd92387ae4bf454653c3984d34694b5;hb=HEAD;hp=5f210654597f325185a6e5c26e3f9c965026ec97;hpb=0cea82f944f2af5eb4a01f548a5c82039c2904a3;p=builder.git diff --git a/source/tool.h b/source/tool.h deleted file mode 100644 index 5f21065..0000000 --- a/source/tool.h +++ /dev/null @@ -1,34 +0,0 @@ -#ifndef TOOL_H_ -#define TOOL_H_ - -#include -#include -#include - -class Builder; -class Component; -class Target; -class Task; - -class Tool -{ -protected: - Builder &builder; - std::string tag; - std::list input_suffixes; - - Tool(Builder &, const std::string &); -public: - virtual ~Tool() { } - - const std::string &get_tag() const { return tag; } - const std::list &get_input_suffixes() const { return input_suffixes; } - bool accepts_suffix(const std::string &) const; - - virtual Target *create_source(const Component &, const Msp::FS::Path &) const { return 0; } - Target *create_target(Target &, const std::string & = std::string()) const; - virtual Target *create_target(const std::list &, const std::string & = std::string()) const = 0; - virtual Task *run(const Target &) const = 0; -}; - -#endif