Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
14f8e1da8e60cf0e17dd50e054b0d2d6beb60ddb
[simgrid.git] / examples / cxx / autoDestination / 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         /*virtual const BasicTask& operator = (const BasicTask& rTask) {\r
22                 Task::operator=(rTask);\r
23                 return *this;\r
24         }*/\r
25 };\r
26 \r
27 typedef BasicTask* BasicTaskPtr;\r
28 \r
29 \r
30 #endif // !BASIC_TASK_HPP