xparser.h

Go to the documentation of this file.
00001 
00032 #ifndef XPARSER_H_ALEIX0211250057
00033 #define XPARSER_H_ALEIX0211250057
00034 
00035 #include "parser.h"
00036 
00037 #include "xtree.h"
00038 #include "xelement.h"
00039 
00040 
00041 /* Stack to keep previous parsed elements */
00042 typedef struct _stack_element
00043 {
00044     scew_element* element;
00045     struct _stack_element* prev;
00046 } stack_element;
00047 
00048 struct _scew_parser
00049 {
00050     XML_Parser parser;
00051     scew_tree* tree;
00052     scew_element* current;
00053     stack_element* stack;
00054 };
00055 
00056 /* Pushes an element into the stack. */
00057 stack_element*
00058 stack_push(stack_element** stack, scew_element* element);
00059 
00060 /* Pops an element from the stack. */
00061 scew_element*
00062 stack_pop(stack_element** stack);
00063 
00064 #endif /* XPARSER_H_ALEIX0211250057 */

Generated on Mon Jun 5 10:20:43 2006 for Intelligence.kdevelop by  doxygen 1.4.6