woden_ext_deserializer.h

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

Generated on Wed Dec 20 20:14:10 2006 for Axis2/C by  doxygen 1.5.1