1 /* xbt/replay_reader.h -- Tools to parse a replay file */
3 /* Copyright (c) 2010-2018. The SimGrid Team. All rights reserved. */
5 /* This program is free software; you can redistribute it and/or modify it
6 * under the terms of the license (GNU LGPL) which comes with this package. */
11 #include <xbt/misc.h> /* SG_BEGIN_DECL */
16 #include <unordered_map>
20 /* To split the file if a unique one is given (specific variable for the other case live in runner()) */
21 typedef std::vector<std::string> ReplayAction;
23 XBT_PUBLIC_DATA std::ifstream* action_fs;
24 XBT_PUBLIC int replay_runner(int argc, char* argv[]);
28 typedef std::function<void(simgrid::xbt::ReplayAction&)> action_fun;
29 XBT_PUBLIC void xbt_replay_action_register(const char* action_name, action_fun function);
30 XBT_PUBLIC action_fun xbt_replay_action_get(const char* action_name);