]> git.tdb.fi Git - builder.git/blobdiff - source/tool.h
Add SubTool class
[builder.git] / source / tool.h
index d1d71030c5fcc7ec35844333b2e79ad2bacf4069..36d1be165b4f614a994d99ca08bcda4b37674ecd 100644 (file)
@@ -44,4 +44,17 @@ public:
        virtual Task *run(const Target &) const = 0;
 };
 
+/**
+Intermediate base class for tool facets.  For example, a linker may need to
+use different commands depending on whether C++ source files are present or
+not, but their presence can't be directly determined from the object files.
+*/
+class SubTool: public Tool
+{
+protected:
+       Tool &parent;
+
+       SubTool(Tool &);
+};
+
 #endif