Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Use pointers instead references.
[simgrid.git] / src / cxx / Msg.hpp
index 3e26478..2ed2f96 100644 (file)
        #error Msg.hpp requires C++ compilation (use a .cxx suffix)\r
 #endif\r
 \r
-#include <Config.hpp>\r
+#include <MsgException.hpp>\r
+#include <InvalidArgumentException.hpp>\r
+#include <LogicException.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
@@ -53,8 +58,14 @@ namespace SimGrid
                 * \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
\ No newline at end of file
+#endif // !MSG_HPP\r