]> git.tdb.fi Git - builder.git/blobdiff - source/vssolutiongenerator.h
Refactor InternalTask to take a functor
[builder.git] / source / vssolutiongenerator.h
index 68d581f501d171a63cf9d9a2451d67df6dcd2c68..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 &t): target(t) { }
-
-       private:
-               void main() override;
-       };
-
 public:
        VsSolutionGenerator(Builder &b): Tool(b, "VSSG") { }
 
        Target *create_target(const std::vector<Target *> &, const std::string &) override;
        Task *run(const Target &) const override;
+
+private:
+       static bool _run(const VsSolutionFile &);
 };
 
 #endif