Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add a class of exception for file not found and Msg files containing the declarations...
[simgrid.git] / src / cxx / Msg.hpp
diff --git a/src/cxx/Msg.hpp b/src/cxx/Msg.hpp
new file mode 100644 (file)
index 0000000..6125156
--- /dev/null
@@ -0,0 +1,56 @@
+/*\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
+\r
+namespace SimGrid\r
+{\r
+       namespace Msg\r
+       {\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
+               static 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
+               static 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
+               static void info(const char* s);\r
+               \r
+               \r
+               \r
+               \r
+       } // namespace Msg\r
+} // namespace SimGrid\r
+\r
+#endif // !MSG_HPP
\ No newline at end of file