parser.h

Go to the documentation of this file.
00001 #ifndef __PARSER_H
00002 #define __PARSER_H
00003 
00004 #include <string.h>
00005 #include <stdio.h>
00006 #include <stdlib.h>
00007 #include <expat.h>
00008 #include <ctype.h>
00009 #include <math.h>
00010 #include "structs.h"
00011 
00012 // Check doc/diagramaEstadosParserDS.dia for states
00013 // parseerror comes from EXPAT syntax error, error means DS syntax error, like invalid tag
00014 typedef enum __State { 
00015         start, prehost, hostdec, preplace, placement, prelay, layout, preend, end, //estados principais
00016         //host states
00017         resources,
00018         filter, //placement states
00019         stream, fromto, tostream, //layout states
00020         error, parseerror //error states
00021 } State;
00022 
00023 
00024 /// reads a xml, fill the layout passed as argument
00025 int readConfig(char *fileName, Layout *layout);
00026 #endif

Generated on Tue Jan 17 19:18:38 2006 for Void by  doxygen 1.4.6