-/*\r
- * Msg.hpp\r
- *\r
- * This file contains the declaration of the wrapper class of the native MSG task type.\r
- *\r
- * Copyright 2006,2007 Martin Quinson, Malek Cherier \r
- * All right reserved. \r
- *\r
- * This program is free software; you can redistribute \r
- * it and/or modify it under the terms of the license \r
- *(GNU LGPL) which comes with this package. \r
- *\r
- */ \r
- \r
-#ifndef MSG_HPP\r
-#define MSG_HPP\r
-\r
-// Compilation C++ recquise\r
-#ifndef __cplusplus\r
- #error Msg.hpp requires C++ compilation (use a .cxx suffix)\r
-#endif\r
-\r
-#include <MsgException.hpp>\r
-#include <InvalidArgumentException.hpp>\r
-#include <LogicException.hpp>\r
-\r
-#include <StringHelper.hpp>\r
-\r
-\r
-namespace SimGrid\r
-{\r
- namespace Msg\r
- {\r
- class MsgException;\r
- class InvalidArgumentException;\r
- class LogicException;\r
- \r
- /*! \brief init() - Initialize MSG (This function must be called at the begining of each simulation).\r
- *\r
- * \param argv A list of arguments.\r
- * \param argc The number of arguments of the list.\r
- */\r
- SIMGRIDX_EXPORT void init(int argc, char** argv);\r
- \r
- /*! \brief finalize() - Finalize MSG (This function must be called at the end of each simulation).\r
- *\r
- * \exception If this function fails, it throws a exception describing the cause of the failure.\r
- */\r
- SIMGRIDX_EXPORT void finalize(void)\r
- throw (MsgException);\r
- \r
- /*! \brief info() - Display information (using xbt log format).\r
- *\r
- * \param s The information to display.\r
- */\r
- SIMGRIDX_EXPORT void info(const StringHelper& s);\r
-\r
- SIMGRIDX_EXPORT void info(const char* s);\r
-\r
- SIMGRIDX_EXPORT void error(const StringHelper& s);\r
-\r
- SIMGRIDX_EXPORT void error(const char* s);\r
-\r
-\r
- /*! \brief getClock() - Retrieve the simulation time\r
- *\r
- * \return The current simulation time.\r
- */\r
- SIMGRIDX_EXPORT double getClock(void);\r
-\r
-\r
- SIMGRIDX_EXPORT void setMaxChannelNumber(int number)\r
- throw(InvalidArgumentException, LogicException);\r
-\r
- SIMGRIDX_EXPORT int getMaxChannelNumber(void);\r
- \r
- } // namespace Msg\r
-} // namespace SimGrid\r
-\r
-#endif // !MSG_HPP\r
+/*
+ * Msg.hpp
+ *
+ * This file contains the declaration of the wrapper class of the native MSG task type.
+ *
+ * Copyright 2006,2007 Martin Quinson, Malek Cherier
+ * All right reserved.
+ *
+ * This program is free software; you can redistribute
+ * it and/or modify it under the terms of the license
+ *(GNU LGPL) which comes with this package.
+ *
+ */
+
+#ifndef MSG_HPP
+#define MSG_HPP
+
+// Compilation C++ recquise
+#ifndef __cplusplus
+ #error Msg.hpp requires C++ compilation (use a .cxx suffix)
+#endif
+
+#include <MsgException.hpp>
+#include <InvalidArgumentException.hpp>
+#include <LogicException.hpp>
+
+#include <StringHelper.hpp>
+
+
+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.
+ */
+ SIMGRIDX_EXPORT void init(int argc, char** argv);
+
+ /*! \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.
+ */
+ SIMGRIDX_EXPORT void finalize(void)
+ throw (MsgException);
+
+ /*! \brief info() - Display information (using xbt log format).
+ *
+ * \param s The information to display.
+ */
+ 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