Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid
[simgrid.git] / src / surf / xml / platf.hpp
1 /* Copyright (c) 2006-2017. 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_SURFXML_PARSE_H
7 #define SURF_SURFXML_PARSE_H
8
9 #include <xbt/function_types.h>
10 #include <xbt/misc.h>
11 #include <xbt/signal.hpp>
12
13 SG_BEGIN_DECL()
14
15 /* Module management functions */
16 XBT_PUBLIC(void) sg_platf_init();;
17 XBT_PUBLIC(void) sg_platf_exit();
18
19 XBT_PUBLIC(void) surf_parse_open(const char *file);
20 XBT_PUBLIC(void) surf_parse_close();
21 XBT_PUBLIC(void) surf_parse_assert(bool cond, const char *fmt, ...) XBT_ATTRIB_PRINTF(2,3);
22 XBT_PUBLIC(void) XBT_ATTRIB_NORETURN surf_parse_error(const char *msg,...) XBT_ATTRIB_PRINTF(1,2);
23 XBT_PUBLIC(void) surf_parse_assert_netpoint(char* hostname, const char* pre, const char* post);
24 XBT_PUBLIC(void) surf_parse_warn(const char *msg,...) XBT_ATTRIB_PRINTF(1,2);
25
26 XBT_PUBLIC(double) surf_parse_get_double(const char *string);
27 XBT_PUBLIC(int) surf_parse_get_int(const char *string);
28 XBT_PUBLIC(double) surf_parse_get_time(const char *string, const char *entity_kind, const char *name);
29 XBT_PUBLIC(double) surf_parse_get_size(const char *string, const char *entity_kind, const char *name);
30 XBT_PUBLIC(double) surf_parse_get_bandwidth(const char *string, const char *entity_kind, const char *name);
31 XBT_PUBLIC(double) surf_parse_get_speed(const char *string, const char *entity_kind, const char *name);
32
33 XBT_PUBLIC(int) surf_parse(); /* Entry-point to the parser */
34
35 SG_END_DECL()
36
37 #endif