]> git.tdb.fi Git - builder.git/blobdiff - source/vssolutiongenerator.h
Refactor InternalTask to take a functor
[builder.git] / source / vssolutiongenerator.h
index 8eaca7c5667c2987e57f5229b271f59adc5f5fbd..b7eaf31c056256ca13993d1daf3c58d0c3431400 100644 (file)
@@ -1,31 +1,20 @@
 #ifndef VSSOLUTIONGENERATOR_H_
 #define VSSOLUTIONGENERATOR_H_
 
-#include "internaltask.h"
 #include "tool.h"
 
 class VsSolutionFile;
 
 class VsSolutionGenerator: public Tool
 {
-private:
-       class Worker: public InternalTask::Worker
-       {
-       private:
-               const VsSolutionFile ⌖
-
-       public:
-               Worker(const VsSolutionFile &);
-
-       private:
-               virtual void main();
-       };
-
 public:
-       VsSolutionGenerator(Builder &);
+       VsSolutionGenerator(Builder &b): Tool(b, "VSSG") { }
+
+       Target *create_target(const std::vector<Target *> &, const std::string &) override;
+       Task *run(const Target &) const override;
 
-       virtual Target *create_target(const std::list<Target *> &, const std::string &);
-       virtual Task *run(const Target &) const;
+private:
+       static bool _run(const VsSolutionFile &);
 };
 
 #endif