Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
ca3c4770269d7058d3b6000e49075272203eb253
[simgrid.git] / examples / cxx / basic / BasicTask.hpp
1 #ifndef BASIC_TASK_HPP\r
2 #define BASIC_TASK_HPP\r
3 \r
4 #include <Task.hpp>\r
5 using namespace SimGrid::Msg;\r
6 \r
7 class BasicTask : public Task\r
8 {\r
9         MSG_DECLARE_DYNAMIC(BasicTask);\r
10 public:\r
11         \r
12         // Default constructor.\r
13         BasicTask() {}\r
14         \r
15         // Destructor\r
16         virtual ~BasicTask() {}\r
17         BasicTask(const char* name, double computeDuration, double messageSize)\r
18         throw (InvalidArgumentException, NullPointerException)\r
19         :Task(name, computeDuration, messageSize){}\r
20 };\r
21 \r
22 typedef BasicTask* BasicTaskPtr;\r
23 \r
24 \r
25 #endif // !BASIC_TASK_HPP