LRDE Tiger Compiler  1.34a $Id: 7fef12e1f5fa43449d667a0eec1d837c40fc1202 $
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
function-task.hh
Go to the documentation of this file.
1 
6 #ifndef TASK_FUNCTION_TASK_HH
7 # define TASK_FUNCTION_TASK_HH
8 
9 # include <task/task.hh>
10 
11 namespace task
12 {
13 
15  class FunctionTask : public Task
16  {
17  public:
18  FunctionTask(void (*callback)(),
19  const char* module_name, const char* desc,
20  const char* name,
21  std::string deps);
22 
23  public:
24  virtual bool check() const override;
25  virtual void execute() const override;
26 
27  private:
28  void (*execute_)();
29  };
30 
31 } //namespace task
32 
33 #endif // !TASK_FUNCTION_TASK_HH