X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/2371d0c1060589bd7b8757f47974ceaa906e0dba..2abf25f94d9a3fd19a5d85637d6758932be8b047:/examples/cxx/explicitDestination/BasicTask.hpp diff --git a/examples/cxx/explicitDestination/BasicTask.hpp b/examples/cxx/explicitDestination/BasicTask.hpp new file mode 100644 index 0000000000..14f8e1da8e --- /dev/null +++ b/examples/cxx/explicitDestination/BasicTask.hpp @@ -0,0 +1,30 @@ +#ifndef BASIC_TASK_HPP +#define BASIC_TASK_HPP + +#include +using namespace SimGrid::Msg; + +class BasicTask : public Task +{ + MSG_DECLARE_DYNAMIC(BasicTask); +public: + + // Default constructor. + BasicTask() {} + + // Destructor + virtual ~BasicTask() {} + BasicTask(const char* name, double computeDuration, double messageSize) + throw (InvalidArgumentException, NullPointerException) + :Task(name, computeDuration, messageSize){} + + /*virtual const BasicTask& operator = (const BasicTask& rTask) { + Task::operator=(rTask); + return *this; + }*/ +}; + +typedef BasicTask* BasicTaskPtr; + + +#endif // !BASIC_TASK_HPP \ No newline at end of file