VPR-6.0

libvpr/include/read_xml_util.h

Go to the documentation of this file.
00001 #ifndef READ_XML_UTIL_H
00002 #define READ_XML_UTIL_H
00003 
00004 #include "util.h"
00005 #include "ezxml.h"
00006 
00007 extern ezxml_t FindElement(INP ezxml_t Parent, INP const char *Name, INP boolean Required);
00008 extern ezxml_t FindFirstElement(INP ezxml_t Parent, INP const char *Name, INP boolean Required);
00009 extern void CheckElement(INP ezxml_t Node, INP const char *Name);
00010 extern void FreeNode(INOUTP ezxml_t Node);
00011 extern const char * FindProperty(INP ezxml_t Parent, INP const char *Name, INP boolean);
00012 extern  boolean IsWhitespace(char c);
00013 extern void CountTokensInString(INP const char *Str, OUTP int *Num, OUTP int *Len);
00014 extern char **GetNodeTokens(INP ezxml_t Node);
00015 extern char **LookaheadNodeTokens(INP ezxml_t Node);
00016 extern int CountChildren(INP ezxml_t Node, INP const char *Name, INP int min_count);
00017 extern int GetIntProperty(INP ezxml_t Parent, INP const char *Name, INP boolean Required, INP int default_value);
00018 extern float GetFloatProperty(INP ezxml_t Parent, INP const char *Name, INP boolean Required, INP float default_value);
00019 extern boolean GetBooleanProperty(INP ezxml_t Parent, INP const char *Name, INP boolean Required, INP boolean default_value);
00020 
00021 #endif
00022