]> git.tdb.fi Git - builder.git/blobdiff - source/toolchain.h
Big rewrite for a more tool-centric approach
[builder.git] / source / toolchain.h
diff --git a/source/toolchain.h b/source/toolchain.h
new file mode 100644 (file)
index 0000000..1060e09
--- /dev/null
@@ -0,0 +1,24 @@
+#ifndef TOOLCHAIN_H_
+#define TOOLCHAIN_H_
+
+#include <map>
+#include <string>
+
+class Tool;
+
+class Toolchain
+{
+private:
+       typedef std::map<std::string, Tool *> ToolMap;
+
+       ToolMap tools;
+
+public:
+       ~Toolchain();
+
+       void add_tool(Tool *);
+       const Tool &get_tool(const std::string &) const;
+       const Tool *get_tool_for_suffix(const std::string &) const;
+};
+
+#endif