X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/0844c6822ce0a2844a0500dafc4e5bc5d37f01bb..ed5b6e45b9957b00a2c41f01ce9da418da78cecb:/examples/cxx/autoDestination/BasicTask.hpp diff --git a/examples/cxx/autoDestination/BasicTask.hpp b/examples/cxx/autoDestination/BasicTask.hpp index 14f8e1da8e..bef66e2d54 100644 --- a/examples/cxx/autoDestination/BasicTask.hpp +++ b/examples/cxx/autoDestination/BasicTask.hpp @@ -1,30 +1,31 @@ -#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 +#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() + throw (MsgException) {} + 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