Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'models_type_rework_part2_try2' into 'master'
[simgrid.git] / include / xbt / virtu.h
1 /* virtu - virtualization layer for the logging to know about the actors    */
2
3 /* Copyright (c) 2007-2021. The SimGrid Team. All rights reserved.          */
4
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. */
7
8 #ifndef XBT_VIRTU_H
9 #define XBT_VIRTU_H
10
11 #include <xbt/base.h>
12
13 #ifdef __cplusplus
14 #include <string>
15 #include <vector>
16
17 namespace simgrid {
18 namespace xbt {
19
20 /* Get the name of the UNIX process englobing the world */
21 XBT_PUBLIC_DATA std::string binary_name;
22 /** Contains all the parameters we got from the command line (including argv[0]) */
23 XBT_PUBLIC_DATA std::vector<std::string> cmdline;
24
25 } // namespace xbt
26 } // namespace simgrid
27 #endif
28
29 SG_BEGIN_DECL
30
31 XBT_PUBLIC const char* xbt_procname(void);
32
33 XBT_PUBLIC int xbt_getpid(void);
34
35 SG_END_DECL
36
37 #endif /* XBT_VIRTU_H */