Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
adding test example to trace process migration using the mask TRACE_PROCESS
[simgrid.git] / include / xbt / graphxml_parse.h
1 /*      $Id $    */
2
3 /* Copyright (c) 2006 Arnaud Legrand. 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_GRAPHXML_PARSE_H
9 #define _XBT_GRAPHXML_PARSE_H
10
11 #include <stdio.h>     /* to have FILE */
12 #include "xbt/misc.h"
13 #include "xbt/graphxml.h"
14
15 /* Entry-point of the graphxml parser. */
16 extern int_f_void_t xbt_graph_parse;
17
18 /* Hook for the different tags. They can be redefined at will whereas
19    the versions without the _fun can't. */
20 extern void_f_void_t STag_graphxml_graph_fun;
21 extern void_f_void_t ETag_graphxml_graph_fun;
22 extern void_f_void_t STag_graphxml_node_fun;
23 extern void_f_void_t ETag_graphxml_node_fun;
24 extern void_f_void_t STag_graphxml_edge_fun;
25 extern void_f_void_t ETag_graphxml_edge_fun;
26
27 XBT_PUBLIC(void) xbt_graph_parse_open(const char *file);
28 XBT_PUBLIC(void) xbt_graph_parse_close(void);
29 XBT_PUBLIC(void) xbt_graph_parse_reset_parser(void);
30 XBT_PUBLIC(void) xbt_graph_parse_get_double(double *value,
31                                             const char *string);
32
33 /* Prototypes of the functions offered by flex */
34 XBT_PUBLIC(int) xbt_graph_parse_lex(void);
35 XBT_PUBLIC(int) xbt_graph_parse_get_lineno(void);
36 XBT_PUBLIC(FILE *) xbt_graph_parse_get_in(void);
37 XBT_PUBLIC(FILE *) xbt_graph_parse_get_out(void);
38 XBT_PUBLIC(int) xbt_graph_parse_get_leng(void);
39 XBT_PUBLIC(char *) xbt_graph_parse_get_text(void);
40 XBT_PUBLIC(void) xbt_graph_parse_set_lineno(int line_number);
41 XBT_PUBLIC(void) xbt_graph_parse_set_in(FILE * in_str);
42 XBT_PUBLIC(void) xbt_graph_parse_set_out(FILE * out_str);
43 XBT_PUBLIC(int) xbt_graph_parse_get_debug(void);
44 XBT_PUBLIC(void) xbt_graph_parse_set_debug(int bdebug);
45 XBT_PUBLIC(int) xbt_graph_parse_lex_destroy(void);
46
47 #endif