VPR-7.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
read_xml_util.h
Go to the documentation of this file.
1 #ifndef READ_XML_UTIL_H
2 #define READ_XML_UTIL_H
3 
4 #include "util.h"
5 #include "ezxml.h"
6 
7 #ifdef __cplusplus
8 extern "C" {
9 #endif
10 ezxml_t FindElement(INP ezxml_t Parent, INP const char *Name,
11  INP boolean Required);
12 ezxml_t FindFirstElement(INP ezxml_t Parent, INP const char *Name,
13  INP boolean Required);
14 void CheckElement(INP ezxml_t Node, INP const char *Name);
15 void FreeNode(INOUTP ezxml_t Node);
16 const char * FindProperty(INP ezxml_t Parent, INP const char *Name,
17  INP boolean);
18 boolean IsWhitespace(char c);
19 void CountTokensInString(INP const char *Str, OUTP int *Num,
20  OUTP int *Len);
21 char **GetNodeTokens(INP ezxml_t Node);
22 char **LookaheadNodeTokens(INP ezxml_t Node);
23 int CountChildren(INP ezxml_t Node, INP const char *Name,
24  INP int min_count);
25 int GetIntProperty(INP ezxml_t Parent, INP char *Name,
26  INP boolean Required, INP int default_value);
27 float GetFloatProperty(INP ezxml_t Parent, INP char *Name,
28  INP boolean Required, INP float default_value);
29 boolean GetBooleanProperty(INP ezxml_t Parent, INP char *Name,
30  INP boolean Required, INP boolean default_value);
31 #ifdef __cplusplus
32 }
33 #endif
34 
35 #endif
36 
Definition: ezxml.h:44
boolean IsWhitespace(char c)
#define INOUTP
Definition: util.h:21
ezxml_t FindElement(INP ezxml_t Parent, INP const char *Name, INP boolean Required)
Definition: read_xml_util.c:11
#define INP
Definition: util.h:19
void FreeNode(INOUTP ezxml_t Node)
Definition: read_xml_util.c:73
ezxml_t FindFirstElement(INP ezxml_t Parent, INP const char *Name, INP boolean Required)
Definition: read_xml_util.c:38
void CountTokensInString(INP const char *Str, OUTP int *Num, OUTP int *Len)
char ** GetNodeTokens(INP ezxml_t Node)
int GetIntProperty(INP ezxml_t Parent, INP char *Name, INP boolean Required, INP int default_value)
float GetFloatProperty(INP ezxml_t Parent, INP char *Name, INP boolean Required, INP float default_value)
int CountChildren(INP ezxml_t Node, INP const char *Name, INP int min_count)
#define OUTP
Definition: util.h:20
boolean GetBooleanProperty(INP ezxml_t Parent, INP char *Name, INP boolean Required, INP boolean default_value)
void CheckElement(INP ezxml_t Node, INP const char *Name)
Definition: read_xml_util.c:59
const char * FindProperty(INP ezxml_t Parent, INP const char *Name, INP boolean)
char ** LookaheadNodeTokens(INP ezxml_t Node)