A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Last Changes of CPP version of Msg
[simgrid.git]
/
src
/
cxx
/
Msg.hpp
diff --git
a/src/cxx/Msg.hpp
b/src/cxx/Msg.hpp
index
6125156
..
3e26478
100644
(file)
--- a/
src/cxx/Msg.hpp
+++ b/
src/cxx/Msg.hpp
@@
-20,35
+20,39
@@
#error Msg.hpp requires C++ compilation (use a .cxx suffix)
\r
#endif
\r
\r
#error Msg.hpp requires C++ compilation (use a .cxx suffix)
\r
#endif
\r
\r
-#include <
MsgException
.hpp>
\r
+#include <
Config
.hpp>
\r
\r
namespace SimGrid
\r
{
\r
namespace Msg
\r
{
\r
\r
namespace SimGrid
\r
{
\r
namespace Msg
\r
{
\r
+ class MsgException;
\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
\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
+
SIMGRIDX_EXPORT
void init(int argc, char** argv);
\r
\r
\r
- /* \brief finalize() - Finalize MSG (This function must be called at the end of each simulation).
\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
*
\r
* \exception If this function fails, it throws a exception describing the cause of the failure.
\r
*/
\r
-
static
void finalize(void)
\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
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
+ SIMGRIDX_EXPORT void info(const char* s);
\r
+
\r
+ /*! \brief getClock() - Retrieve the simulation time
\r
+ *
\r
+ * \return The current simulation time.
\r
+ */
\r
+ SIMGRIDX_EXPORT double getClock(void);
\r
\r
} // namespace Msg
\r
} // namespace SimGrid
\r
\r
} // namespace Msg
\r
} // namespace SimGrid
\r