X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/2abf25f94d9a3fd19a5d85637d6758932be8b047..d54bd673caabfaf797eef66bea11c265759a8652:/examples/cxx/ping_pong/PingPongTask.hpp diff --git a/examples/cxx/ping_pong/PingPongTask.hpp b/examples/cxx/ping_pong/PingPongTask.hpp index 53cc4d84d1..009429dfae 100644 --- a/examples/cxx/ping_pong/PingPongTask.hpp +++ b/examples/cxx/ping_pong/PingPongTask.hpp @@ -1,40 +1,41 @@ -#ifndef PINGPONG_TASK_HPP -#define PINGPONG_TASK_HPP - -#include -using namespace SimGrid::Msg; - -class PingPongTask : public Task -{ - MSG_DECLARE_DYNAMIC(PingPongTask); - -public: - - PingPongTask() - :Task(NULL, 0.0, 0.0){} - - // Default constructor. - PingPongTask(const char* name, double computeDuration, double messageSize) - throw (InvalidArgumentException, NullPointerException) - :Task(name, computeDuration, messageSize){} - - // Destructor - virtual ~PingPongTask() {} - - void setTime(double timeVal) - { - this->timeVal = timeVal; - } - - double getTime() - { - return timeVal; - } - -private : - - double timeVal; -}; - - -#endif // !PINGPONG_TASK_HPP \ No newline at end of file +#ifndef PINGPONG_TASK_HPP +#define PINGPONG_TASK_HPP + +#include +using namespace SimGrid::Msg; + +class PingPongTask : public Task +{ + MSG_DECLARE_DYNAMIC(PingPongTask); + +public: + + PingPongTask() + :Task(NULL, 0.0, 0.0){} + + // Default constructor. + PingPongTask(const char* name, double computeDuration, double messageSize) + throw (InvalidArgumentException, NullPointerException) + :Task(name, computeDuration, messageSize){} + + // Destructor + virtual ~PingPongTask() + throw(MsgException){} + + void setTime(double timeVal) + { + this->timeVal = timeVal; + } + + double getTime() + { + return timeVal; + } + +private : + + double timeVal; +}; + + +#endif // !PINGPONG_TASK_HPP