Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Variables setted by an other file.
[simgrid.git] / include / xbt / graphxml_parse.h
1 /*      $Id $    */
2
3 /* Copyright (c) 2006, 2007, 2009, 2010. The SimGrid Team.
4  * All rights reserved.                                                     */
5
6 /* This program is free software; you can redistribute it and/or modify it
7  * under the terms of the license (GNU LGPL) which comes with this package. */
8
9 #ifndef _XBT_GRAPHXML_PARSE_H
10 #define _XBT_GRAPHXML_PARSE_H
11
12 #include <stdio.h>     /* to have FILE */
13 #include "xbt/misc.h"
14 #include "xbt/graphxml.h"
15
16 /* Entry-point of the graphxml parser. */
17 extern int_f_void_t xbt_graph_parse;
18
19 /* Hook for the different tags. They can be redefined at will whereas
20    the versions without the _fun can't. */
21 extern void_f_void_t STag_graphxml_graph_fun;
22 extern void_f_void_t ETag_graphxml_graph_fun;
23 extern void_f_void_t STag_graphxml_node_fun;
24 extern void_f_void_t ETag_graphxml_node_fun;
25 extern void_f_void_t STag_graphxml_edge_fun;
26 extern void_f_void_t ETag_graphxml_edge_fun;
27
28 XBT_PUBLIC(void) xbt_graph_parse_open(const char *file);
29 XBT_PUBLIC(void) xbt_graph_parse_close(void);
30 XBT_PUBLIC(void) xbt_graph_parse_reset_parser(void);
31 XBT_PUBLIC(void) xbt_graph_parse_get_double(double *value,
32                                             const char *string);
33
34 /* Prototypes of the functions offered by flex */
35 XBT_PUBLIC(int) xbt_graph_parse_lex(void);
36 XBT_PUBLIC(int) xbt_graph_parse_get_lineno(void);
37 XBT_PUBLIC(FILE *) xbt_graph_parse_get_in(void);
38 XBT_PUBLIC(FILE *) xbt_graph_parse_get_out(void);
39 XBT_PUBLIC(int) xbt_graph_parse_get_leng(void);
40 XBT_PUBLIC(char *) xbt_graph_parse_get_text(void);
41 XBT_PUBLIC(void) xbt_graph_parse_set_lineno(int line_number);
42 XBT_PUBLIC(void) xbt_graph_parse_set_in(FILE * in_str);
43 XBT_PUBLIC(void) xbt_graph_parse_set_out(FILE * out_str);
44 XBT_PUBLIC(int) xbt_graph_parse_get_debug(void);
45 XBT_PUBLIC(void) xbt_graph_parse_set_debug(int bdebug);
46 XBT_PUBLIC(int) xbt_graph_parse_lex_destroy(void);
47
48 #endif