Main Page | Modules | Class List | Directories | File List | Class Members | File Members | Examples

woden_reader.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_READER_H
00018 #define WODEN_READER_H
00019 
00027 #include <woden.h>
00028 #include <woden_ext_registry.h>
00029 #include <axiom_document.h>
00030 
00036 typedef union woden_reader_base woden_reader_base_t;
00037 typedef struct woden_reader woden_reader_t;
00038 typedef struct woden_reader_ops woden_reader_ops_t;
00039 
00040 #ifdef __cplusplus
00041 extern "C"
00042 {
00043 #endif
00044 
00045 struct woden_reader_ops
00046 {
00051     axis2_status_t (AXIS2_CALL *
00052     free) (
00053             void *reader,
00054             const axis2_env_t *env);
00055  
00056     void *(AXIS2_CALL *
00057     read_wsdl) (
00058             void *reader,
00059             const axis2_env_t *env,
00060             axiom_document_t *om_doc,
00061             axis2_char_t *uri);
00062 
00063     axis2_status_t (AXIS2_CALL *
00064     set_ext_registry) (
00065             void *reader,
00066             const axis2_env_t *env,
00067             woden_ext_registry_t *ext_reg);
00068 
00069     woden_ext_registry_t *(AXIS2_CALL *
00070     get_ext_registry) (
00071             void *reader,
00072             const axis2_env_t *env);
00073 
00074    
00075 };
00076 
00077 struct woden_reader
00078 {
00079     woden_reader_ops_t *ops;
00080 };
00081 
00082 AXIS2_EXTERN woden_reader_t * AXIS2_CALL
00083 woden_reader_create(
00084         const axis2_env_t *env);
00085 
00086 #define WODEN_READER_FREE(reader, env) \
00087       (((woden_reader_t *) reader)->ops->free(reader, env))
00088 
00089 #define WODEN_READER_READ_WSDL(reader, env, om_doc, uri) \
00090       (((woden_reader_t *) reader)->ops->\
00091       read_wsdl (reader, env, om_doc, uri))
00092 
00093 #define WODEN_READER_SET_EXT_REGISTRY(reader, env, ext_reg) \
00094       (((woden_reader_t *) reader)->ops->\
00095       set_ext_registry (reader, env, ext_reg))
00096 
00097 #define WODEN_READER_GET_EXT_REGISTRY(reader, env) \
00098       (((woden_reader_t *) reader)->ops->\
00099        get_ext_registry(reader, env))
00100 
00102 #ifdef __cplusplus
00103 }
00104 #endif
00105 #endif /* WODEN_READER_H */

Generated on Fri Jun 16 18:02:32 2006 for Axis2/C by  doxygen 1.4.2