X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/8b9f1461e3444561c67dbf0b688d69172b1a8d31..13ab86ee48bea707ffb0041659f65dac2351c6d5:/src/cxx/Msg.hpp diff --git a/src/cxx/Msg.hpp b/src/cxx/Msg.hpp index 61251569c1..048e38c7eb 100644 --- a/src/cxx/Msg.hpp +++ b/src/cxx/Msg.hpp @@ -21,36 +21,60 @@ #endif #include +#include +#include + +#include + namespace SimGrid { namespace Msg { + class MsgException; + class InvalidArgumentException; + class LogicException; /*! \brief init() - Initialize MSG (This function must be called at the begining of each simulation). * * \param argv A list of arguments. * \param argc The number of arguments of the list. */ - static void init(int argc, char** argv); + SIMGRIDX_EXPORT void init(int argc, char** argv); - /* \brief finalize() - Finalize MSG (This function must be called at the end of each simulation). + /*! \brief finalize() - Finalize MSG (This function must be called at the end of each simulation). * * \exception If this function fails, it throws a exception describing the cause of the failure. */ - static void finalize(void) + SIMGRIDX_EXPORT void finalize(void) throw (MsgException); /*! \brief info() - Display information (using xbt log format). * * \param s The information to display. */ - static void info(const char* s); - - - + SIMGRIDX_EXPORT void info(const StringHelper& s); + + SIMGRIDX_EXPORT void info(const char* s); + + SIMGRIDX_EXPORT void error(const StringHelper& s); + + SIMGRIDX_EXPORT void error(const char* s); + + + /*! \brief getClock() - Retrieve the simulation time + * + * \return The current simulation time. + */ + SIMGRIDX_EXPORT double getClock(void); + + + SIMGRIDX_EXPORT void setMaxChannelNumber(int number) + throw(InvalidArgumentException, LogicException); + + SIMGRIDX_EXPORT int getMaxChannelNumber(void); } // namespace Msg } // namespace SimGrid -#endif // !MSG_HPP \ No newline at end of file +#endif // !MSG_HPP