Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
last changes of cpp wrappers examples
[simgrid.git] / examples / cxx / autoDestination / BasicTask.hpp
1 #ifndef BASIC_TASK_HPP
2 #define BASIC_TASK_HPP
3
4 #include <Task.hpp>
5 using namespace SimGrid::Msg;
6
7 class BasicTask : public Task
8 {
9         MSG_DECLARE_DYNAMIC(BasicTask);
10 public:
11         
12         // Default constructor.
13         BasicTask() {}
14         
15         // Destructor
16         virtual ~BasicTask()
17         throw (MsgException) {}
18         BasicTask(const char* name, double computeDuration, double messageSize)
19         throw (InvalidArgumentException, NullPointerException)
20         :Task(name, computeDuration, messageSize){}
21
22         /*virtual const BasicTask& operator = (const BasicTask& rTask) {
23                 Task::operator=(rTask);
24                 return *this;
25         }*/
26 };
27
28 typedef BasicTask* BasicTaskPtr;
29
30
31 #endif // !BASIC_TASK_HPP