You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
1.4 KiB

7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. /** Generated by xsd2c*/
  2. #ifndef __Enumeration_H__
  3. #define __Enumeration_H__
  4. #ifndef _DESERIALIZER_DISABLE_
  5. #include <libxml/parser.h>
  6. #endif
  7. #define TO_ENUMERATION(derived) (derived->__base)
  8. #ifdef __cplusplus
  9. extern "C" {
  10. #endif
  11. struct Enumeration_value_List {
  12. char* value;
  13. struct Enumeration_value_List* next;
  14. };
  15. /**
  16. * OBJECT: Enumeration
  17. */
  18. struct Enumeration
  19. {
  20. struct Enumeration_value_List* value_head;
  21. struct Enumeration_value_List* value_tail;
  22. };
  23. /**
  24. * LIST: Enumeration_List
  25. */
  26. struct Enumeration_List
  27. {
  28. struct Enumeration* value;
  29. struct Enumeration_List* next;
  30. };
  31. struct Enumeration* Enumeration_Create();
  32. void Enumeration_Free(struct Enumeration* obj);
  33. void Enumeration_Sax_Serialize(struct Enumeration* obj,
  34. const char *root_element_name,
  35. void (*OnStartElement)(const char* element_name, int attr_count, char **keys, char **values, void* userData),
  36. void (*OnCharacters)(const char* element_name, const char* chars, void* userData),
  37. void (*OnEndElement)(const char* element_name, void* userData),
  38. void* userData);
  39. #ifndef _DESERIALIZER_DISABLE_
  40. struct Enumeration* Enumeration_Deserialize(xmlNodePtr xmlRoot);
  41. #endif
  42. void Enumeration_Add_value(struct Enumeration* obj, const char* value);
  43. struct Enumeration_value_List* Enumeration_Get_value(struct Enumeration* obj);
  44. #ifdef __cplusplus
  45. };
  46. #endif /*__cplusplus*/
  47. #endif