00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef AXIOM_DOCTYPE_H
00018 #define AXIOM_DOCTYPE_H
00019
00025 #include <axiom_node.h>
00026 #include <axiom_output.h>
00027
00028 #ifdef __cplusplus
00029 extern "C"
00030 {
00031 #endif
00032
00033 struct axiom_doctype;
00034 struct axiom_doctype_ops;
00035
00046 AXIS2_DECLARE_DATA typedef struct axiom_doctype_ops
00047 {
00055 axis2_status_t (AXIS2_CALL *
00056 free)(struct axiom_doctype *om_doctype,
00057 const axis2_env_t *env);
00063 axis2_char_t* (AXIS2_CALL *
00064 get_value)(struct axiom_doctype *om_doctype,
00065 const axis2_env_t *env);
00074 axis2_status_t (AXIS2_CALL *
00075 set_value)(struct axiom_doctype *om_doctype,
00076 const axis2_env_t *env,
00077 const axis2_char_t *value);
00087 axis2_status_t (AXIS2_CALL *
00088 serialize)(struct axiom_doctype *om_doctype,
00089 const axis2_env_t *env,
00090 axiom_output_t *om_output);
00091
00092 } axiom_doctype_ops_t;
00093
00098 typedef struct axiom_doctype
00099 {
00101 axiom_doctype_ops_t *ops;
00102
00103 } axiom_doctype_t;
00104
00115 AXIS2_EXTERN axiom_doctype_t * AXIS2_CALL
00116 axiom_doctype_create (const axis2_env_t *env,
00117 axiom_node_t * parent,
00118 const axis2_char_t * value,
00119 axiom_node_t ** node);
00120
00122 #define AXIOM_DOCTYPE_FREE(doctype, env) \
00123 ((doctype)->ops->free(doctype, env))
00124
00125 #define AXIOM_DOCTYPE_GET_VALUE(doctype, env) \
00126 ((doctype)->ops->get_value(doctype, value))
00127
00128 #define AXIOM_DOCTYPE_SET_VALUE(doctype, env, value) \
00129 ((doctype)->ops->set_value(doctype, env, value))
00130
00131 #define AXIOM_DOCTYPE_SERIALIZE(doctype, env, om_output) \
00132 ((doctype)->ops->serialize(doctype, env, om_output))
00133
00136 #ifdef __cplusplus
00137 }
00138 #endif
00139
00140 #endif