Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Indent include and src using this command:
[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 #include "simgrid_config.h"
16
17 /* Entry-point of the graphxml parser. */
18 extern int_f_void_t xbt_graph_parse;
19
20 /* Hook for the different tags. They can be redefined at will whereas
21    the versions without the _fun can't. */
22 extern void_f_void_t STag_graphxml_graph_fun;
23 extern void_f_void_t ETag_graphxml_graph_fun;
24 extern void_f_void_t STag_graphxml_node_fun;
25 extern void_f_void_t ETag_graphxml_node_fun;
26 extern void_f_void_t STag_graphxml_edge_fun;
27 extern void_f_void_t ETag_graphxml_edge_fun;
28
29 XBT_PUBLIC(void) xbt_graph_parse_open(const char *file);
30 XBT_PUBLIC(void) xbt_graph_parse_close(void);
31 XBT_PUBLIC(void) xbt_graph_parse_reset_parser(void);
32 XBT_PUBLIC(void) xbt_graph_parse_get_double(double *value,
33                                             const char *string);
34
35 /* Prototypes of the functions offered by flex */
36 XBT_PUBLIC(int) xbt_graph_parse_lex(void);
37 XBT_PUBLIC(int) xbt_graph_parse_get_lineno(void);
38 XBT_PUBLIC(FILE *) xbt_graph_parse_get_in(void);
39 XBT_PUBLIC(FILE *) xbt_graph_parse_get_out(void);
40 XBT_PUBLIC(int) xbt_graph_parse_get_leng(void);
41 XBT_PUBLIC(char *) xbt_graph_parse_get_text(void);
42 XBT_PUBLIC(void) xbt_graph_parse_set_lineno(int line_number);
43 XBT_PUBLIC(void) xbt_graph_parse_set_in(FILE * in_str);
44 XBT_PUBLIC(void) xbt_graph_parse_set_out(FILE * out_str);
45 XBT_PUBLIC(int) xbt_graph_parse_get_debug(void);
46 XBT_PUBLIC(void) xbt_graph_parse_set_debug(int bdebug);
47 XBT_PUBLIC(int) xbt_graph_parse_lex_destroy(void);
48
49 #endif