00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef AXIS2_ANY_CONTENT_TYPE_H
00018 #define AXIS2_ANY_CONTENT_TYPE_H
00019
00032 #include <axis2_defines.h>
00033 #include <axis2_env.h>
00034 #include <axis2_const.h>
00035 #include <axis2_hash.h>
00036 #include <axis2_qname.h>
00037
00038 #ifdef __cplusplus
00039 extern "C"
00040 {
00041 #endif
00042
00044 typedef struct axis2_any_content_type axis2_any_content_type_t;
00046 typedef struct axis2_any_content_type_ops axis2_any_content_type_ops_t;
00047
00051 struct axis2_any_content_type_ops
00052 {
00061 axis2_status_t (AXIS2_CALL *
00062 add_value)(
00063 struct axis2_any_content_type *any_content_type,
00064 const axis2_env_t *env,
00065 axis2_qname_t *qname,
00066 axis2_char_t *value);
00067
00076 axis2_char_t *(AXIS2_CALL *
00077 get_value)(
00078 const axis2_any_content_type_t *any_content_type,
00079 const axis2_env_t *env,
00080 axis2_qname_t *qname);
00088 axis2_hash_t *(AXIS2_CALL *
00089 get_value_map)(
00090 const axis2_any_content_type_t *any_content_type,
00091 const axis2_env_t *env);
00092
00099 axis2_status_t (AXIS2_CALL *
00100 free)(
00101 struct axis2_any_content_type *any_content_type,
00102 const axis2_env_t *env);
00103
00104 };
00105
00109 struct axis2_any_content_type
00110 {
00112 axis2_any_content_type_ops_t *ops;
00113 };
00114
00115
00121 AXIS2_EXTERN axis2_any_content_type_t *AXIS2_CALL
00122 axis2_any_content_type_create(
00123 const axis2_env_t *env);
00124
00125
00126
00127
00130 #define AXIS2_ANY_CONTENT_TYPE_ADD_VALUE(any_content_type, env, qname, value) \
00131 ((any_content_type)->ops->add_value(any_content_type, env, qname, value))
00132
00135 #define AXIS2_ANY_CONTENT_TYPE_GET_VALUE(any_content_type, env, qname) \
00136 ((any_content_type)->ops->get_value(any_content_type, env, qname))
00137
00140 #define AXIS2_ANY_CONTENT_TYPE_GET_VALUE_MAP(any_content_type, env) \
00141 ((any_content_type)->ops->get_value_map(any_content_type, env))
00142
00145 #define AXIS2_ANY_CONTENT_TYPE_FREE(any_content_type, env) \
00146 ((any_content_type)->ops->free(any_content_type, env))
00147
00148
00151 #ifdef __cplusplus
00152 }
00153 #endif
00154
00155 #endif