Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Remove the old crufty navigation bars
[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>
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 void xbt_graph_parse_open(const char *file);
28 void xbt_graph_parse_close(void);
29 void xbt_graph_parse_reset_parser(void);
30 void xbt_graph_parse_get_double(double *value,const char *string);
31
32 /* Prototypes of the functions offered by flex */
33 int xbt_graph_parse_lex(void);
34 int xbt_graph_parse_get_lineno(void);
35 FILE *xbt_graph_parse_get_in(void);
36 FILE *xbt_graph_parse_get_out(void);
37 int xbt_graph_parse_get_leng(void);
38 char *xbt_graph_parse_get_text(void);
39 void xbt_graph_parse_set_lineno(int line_number);
40 void xbt_graph_parse_set_in(FILE * in_str);
41 void xbt_graph_parse_set_out(FILE * out_str);
42 int xbt_graph_parse_get_debug(void);
43 void xbt_graph_parse_set_debug(int bdebug);
44 int xbt_graph_parse_lex_destroy(void);
45
46 #endif