From a6cc4ca8b8432acdc2ce7bf7ebb92583eeeeff9f Mon Sep 17 00:00:00 2001 From: snowdrop Date: Fri, 15 Oct 2004 13:34:47 +0000 Subject: development --- xsd2c/Enumeration.h | 67 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100755 xsd2c/Enumeration.h (limited to 'xsd2c/Enumeration.h') diff --git a/xsd2c/Enumeration.h b/xsd2c/Enumeration.h new file mode 100755 index 0000000..49edae5 --- /dev/null +++ b/xsd2c/Enumeration.h @@ -0,0 +1,67 @@ +/** Generated by xsd2c*/ +#ifndef __Enumeration_H__ +#define __Enumeration_H__ + + + +#ifndef _DESERIALIZER_DISABLE_ + #include +#endif + + +#define TO_ENUMERATION(derived) (derived->__base) + + +#ifdef __cplusplus +extern "C" { +#endif + + +struct Enumeration_value_List { + char* value; + struct Enumeration_value_List* next; +}; + +/** + * OBJECT: Enumeration + */ +struct Enumeration +{ + struct Enumeration_value_List* value_head; + struct Enumeration_value_List* value_tail; +}; + +/** + * LIST: Enumeration_List + */ +struct Enumeration_List +{ + struct Enumeration* value; + struct Enumeration_List* next; +}; + + +struct Enumeration* Enumeration_Create(); +void Enumeration_Free(struct Enumeration* obj); +void Enumeration_Sax_Serialize(struct Enumeration* obj, + const char *root_element_name, + void (*OnStartElement)(const char* element_name, int attr_count, char **keys, char **values, void* userData), + void (*OnCharacters)(const char* element_name, const char* chars, void* userData), + void (*OnEndElement)(const char* element_name, void* userData), + void* userData); + +#ifndef _DESERIALIZER_DISABLE_ +struct Enumeration* Enumeration_Deserialize(xmlNodePtr xmlRoot); +#endif + +void Enumeration_Add_value(struct Enumeration* obj, const char* value); +struct Enumeration_value_List* Enumeration_Get_value(struct Enumeration* obj); + + +#ifdef __cplusplus +}; +#endif /*__cplusplus*/ + + + +#endif -- cgit v1.1-32-gdbae