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