woden_ext_deserializer.h

Go to the documentation of this file.
00001 /*
00002  * Copyright 2004,2005 The Apache Software Foundation.
00003  *
00004  * Licensed under the Apache License, Version 2.0 (the "License");
00005  * you may not use this file except in compliance with the License.
00006  * You may obtain a copy of the License at
00007  *
00008  *      http://www.apache.org/licenses/LICENSE-2.0
00009  *
00010  * Unless required by applicable law or agreed to in writing, software
00011  * distributed under the License is distributed on an "AS IS" BASIS,
00012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  * See the License for the specific language governing permissions and
00014  * limitations under the License.
00015  */
00016 
00017 #ifndef WODEN_EXT_DESERIALIZER_H
00018 #define WODEN_EXT_DESERIALIZER_H
00019 
00028 #include <axis2_allocator.h>
00029 #include <axis2_env.h>
00030 #include <axis2_error.h>
00031 #include <axis2_string.h>
00032 #include <axis2_utils.h>
00033 #include <axis2_qname.h>
00034 #include <axis2_hash.h>
00035 #include <axiom_node.h>
00036 #include <woden.h>
00037 #include <woden_ext_registry.h>
00038 
00039 #ifdef __cplusplus
00040 extern "C"
00041 {
00042 #endif
00043 
00044 typedef struct woden_ext_deserializer woden_ext_deserializer_t;
00045 typedef struct woden_ext_deserializer_ops woden_ext_deserializer_ops_t;
00046 
00052 struct woden_ext_deserializer_ops
00053 {
00058     axis2_status_t (AXIS2_CALL *
00059     free) (
00060             void *ext_deserializer,
00061             const axis2_env_t *env);
00062  
00063     woden_obj_types_t (AXIS2_CALL *
00064     type) (
00065             void *ext_deserializer,
00066             const axis2_env_t *env);
00067 
00068     void *(AXIS2_CALL *
00069     unmarshall) (
00070             void *ext_deserializer,
00071             const axis2_env_t *env,
00072             axis2_char_t *parent_type,
00073             void *parent,
00074             axis2_qname_t *ext_type,
00075             axiom_node_t *ext_el_node,
00076             void *desc,
00077             woden_ext_registry_t *ext_reg);
00078 
00079 };
00080 
00081 struct woden_ext_deserializer
00082 {
00083     woden_ext_deserializer_ops_t *ops;
00084 };
00085 
00086 AXIS2_EXTERN woden_ext_deserializer_t * AXIS2_CALL
00087 woden_ext_deserializer_create(
00088         const axis2_env_t *env);
00089 
00090 /************************Woden C Internal Methods******************************/
00091 AXIS2_EXTERN axis2_status_t AXIS2_CALL
00092 woden_ext_deserializer_resolve_methods(
00093         woden_ext_deserializer_t *ext_deserializer,
00094         const axis2_env_t *env,
00095         axis2_hash_t *methods);
00096 /************************End of Woden C Internal Methods***********************/
00097 
00098 #define WODEN_EXT_DESERIALIZER_FREE(ext_deserializer, env) \
00099       (((woden_ext_deserializer_t *) ext_deserializer)->ops->\
00100          free (ext_deserializer, env))
00101 
00102 #define WODEN_EXT_DESERIALIZER_TYPE(ext_deserializer, env) \
00103       (((woden_ext_deserializer_t *) ext_deserializer)->ops->\
00104          type (ext_deserializer, env))
00105 
00106 #define WODEN_EXT_DESERIALIZER_UNMARSHALL(ext_deserializer, env, \
00107         parent_type, parent, ext_type, ext_el_node, desc, ext_reg) \
00108       (((woden_ext_deserializer_t *) ext_deserializer)->ops->\
00109          unmarshall (ext_deserializer, env, parent_type, parent, ext_type, \
00110              ext_el_node, desc, ext_reg))
00111 
00113 #ifdef __cplusplus
00114 }
00115 #endif
00116 #endif /* WODEN_EXT_DESERIALIZER_H */

Generated on Tue Oct 3 22:35:48 2006 for Axis2/C by  doxygen 1.4.7