X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d5ee9e974615a1c7f82bf9f86c5c71e00b8e61f4..8b9f1461e3444561c67dbf0b688d69172b1a8d31:/src/cxx/Msg.hpp diff --git a/src/cxx/Msg.hpp b/src/cxx/Msg.hpp new file mode 100644 index 0000000000..61251569c1 --- /dev/null +++ b/src/cxx/Msg.hpp @@ -0,0 +1,56 @@ +/* + * 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 + +namespace SimGrid +{ + namespace Msg + { + + /*! \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); + + /* \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) + throw (MsgException); + + /*! \brief info() - Display information (using xbt log format). + * + * \param s The information to display. + */ + static void info(const char* s); + + + + + } // namespace Msg +} // namespace SimGrid + +#endif // !MSG_HPP \ No newline at end of file