Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Make member variable private (sonar).
[simgrid.git] / src / surf / surf_private.hpp
1 /* Copyright (c) 2004-2018. The SimGrid Team. All rights reserved.          */
2
3 /* This program is free software; you can redistribute it and/or modify it
4  * under the terms of the license (GNU LGPL) which comes with this package. */
5
6 #ifndef SURF_SURF_PRIVATE_HPP
7 #define SURF_SURF_PRIVATE_HPP
8
9 #include "simgrid/forward.h"
10 #include "xbt/sysdep.h"
11
12 extern "C" {
13
14 /* Generic functions common to all models */
15
16 XBT_PRIVATE FILE* surf_fopen(const char* name, const char* mode);
17 XBT_PRIVATE std::ifstream* surf_ifsopen(std::string name);
18
19 /* The __surf_is_absolute_file_path() returns 1 if
20  * file_path is a absolute file path, in the other
21  * case the function returns 0.
22  */
23 XBT_PRIVATE int __surf_is_absolute_file_path(const char* file_path);
24
25 XBT_PUBLIC void storage_register_callbacks();
26
27 XBT_PRIVATE void parse_after_config();
28
29 /********** Tracing **********/
30 /* from surf_instr.c */
31 void TRACE_surf_host_set_speed(double date, const char* resource, double power);
32 void TRACE_surf_link_set_bandwidth(double date, const char* resource, double bandwidth);
33 }
34
35 #endif