4 * This file contains the declaration of the wrapper class of the native MSG task type.
\r
6 * Copyright 2006,2007 Martin Quinson, Malek Cherier
\r
7 * All right reserved.
\r
9 * This program is free software; you can redistribute
\r
10 * it and/or modify it under the terms of the license
\r
11 *(GNU LGPL) which comes with this package.
\r
18 // Compilation C++ recquise
\r
20 #error Msg.hpp requires C++ compilation (use a .cxx suffix)
\r
23 #include <Config.hpp>
\r
31 /*! \brief init() - Initialize MSG (This function must be called at the begining of each simulation).
\r
33 * \param argv A list of arguments.
\r
34 * \param argc The number of arguments of the list.
\r
36 SIMGRIDX_EXPORT void init(int argc, char** argv);
\r
38 /*! \brief finalize() - Finalize MSG (This function must be called at the end of each simulation).
\r
40 * \exception If this function fails, it throws a exception describing the cause of the failure.
\r
42 SIMGRIDX_EXPORT void finalize(void)
\r
43 throw (MsgException);
\r
45 /*! \brief info() - Display information (using xbt log format).
\r
47 * \param s The information to display.
\r
49 SIMGRIDX_EXPORT void info(const char* s);
\r
51 /*! \brief getClock() - Retrieve the simulation time
\r
53 * \return The current simulation time.
\r
55 SIMGRIDX_EXPORT double getClock(void);
\r
58 } // namespace SimGrid
\r