Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
static casting
[simgrid.git] / include / xbt / replay.hpp
1 /* xbt/replay_reader.h -- Tools to parse a replay file                */
2
3 /* Copyright (c) 2010, 2012-2015, 2017. The SimGrid Team.
4  * All rights reserved.                                                     */
5
6 /* This program is free software; you can redistribute it and/or modify it
7  * under the terms of the license (GNU LGPL) which comes with this package. */
8
9 #ifndef XBT_REPLAY_HPP
10 #define XBT_REPLAY_HPP
11
12 #include "xbt/dict.h"
13 #ifdef __cplusplus
14 #include <fstream>
15
16 namespace simgrid {
17 namespace xbt {
18 /* To split the file if a unique one is given (specific variable for the other case live in runner()) */
19 XBT_PUBLIC_DATA(std::ifstream*) action_fs;
20 XBT_PUBLIC(bool) replay_is_active();
21 XBT_PUBLIC(void) replay_init();
22 XBT_PUBLIC(void) replay_exit();
23 XBT_PUBLIC(int) replay_runner(int argc, char* argv[]);
24 }
25 }
26 #endif
27
28 SG_BEGIN_DECL()
29
30 typedef void (*action_fun)(const char* const* args);
31 XBT_PUBLIC_DATA(xbt_dict_t) xbt_action_queues;
32 XBT_PUBLIC(void) xbt_replay_action_register(const char* action_name, action_fun function);
33
34 SG_END_DECL()
35
36 #endif