Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
codefactor: malformed whitespace issues
[simgrid.git] / include / xbt / virtu.h
1 /* virtu - virtualization layer for the logging to know about the actors    */
2
3 /* Copyright (c) 2007-2019. 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 #include <xbt/dynar.h>
13 #include <xbt/function_types.h>
14 #include <xbt/misc.h>
15
16 SG_BEGIN_DECL
17
18 XBT_PUBLIC const char* xbt_procname(void);
19
20 XBT_PUBLIC int xbt_getpid(void);
21
22 SG_END_DECL
23
24 #ifdef __cplusplus
25 #include <string>
26 #include <vector>
27 namespace simgrid {
28 namespace xbt {
29
30 /* Get the name of the UNIX process englobing the world */
31 XBT_PUBLIC_DATA std::string binary_name;
32 /** Contains all the parameters we got from the command line (including argv[0]) */
33 XBT_PUBLIC_DATA std::vector<std::string> cmdline;
34
35 } // namespace xbt
36 } // namespace simgrid
37 #endif
38 #endif /* XBT_VIRTU_H */