blob: b44b8eaffd0b85da5528a4915eefd530c7c0becb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
/**
** \file task/simple-task.hh
** \brief Declare the task::SimpleTask class.
*/
#pragma once
#include <string>
#include <task/task.hh>
namespace task
{
/** \brief A code factoring class for tasks without arguments.
The purpose of this class is to avoid duplicating the code which register a
task without arguments. The sibling class task::ArgumentTask does pretty much
the same (with extended functionnalities) for tasks with arguments.
*/
class SimpleTask : public Task
{
/** \name Ctor. */
/** \{ */
public:
/// Construct and register a SimpleTask.
SimpleTask(const char* name,
const char* module_name,
const char* desc,
std::string deps = "");
/** \} */
};
} // namespace task
|