woden_soap_fault_code.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_SOAP_FAULT_CODE_H
00019 #define WODEN_SOAP_FAULT_CODE_H
00020 
00035 #include <axis2_allocator.h>
00036 #include <axis2_env.h>
00037 #include <axis2_error.h>
00038 #include <axis2_string.h>
00039 #include <axis2_utils.h>
00040 #include <axis2_hash.h>
00041 #include <axis2_qname.h>
00042 #include <woden.h>
00043 
00044 #ifdef __cplusplus
00045 extern "C"
00046 {
00047 #endif
00048 
00049 typedef struct woden_soap_fault_code woden_soap_fault_code_t;
00050 typedef struct woden_soap_fault_code_ops woden_soap_fault_code_ops_t;
00051 struct woden_ext_element;
00052 
00058 struct woden_soap_fault_code_ops
00059 {
00064     axis2_status_t (AXIS2_CALL *
00065     free) (
00066             void *soap_fault_code,
00067             const axis2_env_t *env);
00068 
00069     axis2_bool_t (AXIS2_CALL *
00070     is_qname) (
00071             void *soap_fault_code,
00072             const axis2_env_t *env);
00073 
00074     axis2_bool_t (AXIS2_CALL *
00075     is_token) (
00076             void *soap_fault_code,
00077             const axis2_env_t *env);
00078 
00079     axis2_qname_t *(AXIS2_CALL *
00080     get_qname) (
00081             void *soap_fault_code,
00082             const axis2_env_t *env);
00083 
00084     axis2_char_t *(AXIS2_CALL *
00085     get_token) (
00086             void *soap_fault_code,
00087             const axis2_env_t *env);
00088 
00089 
00090 };
00091 
00092 struct woden_soap_fault_code
00093 {
00094     woden_soap_fault_code_ops_t *ops;
00095     
00096 };
00097 
00098 AXIS2_EXTERN woden_soap_fault_code_t * AXIS2_CALL
00099 woden_soap_fault_code_create(
00100         const axis2_env_t *env,
00101         axis2_char_t *token,
00102         axis2_qname_t *code_qn);
00103 
00104 AXIS2_EXTERN void * AXIS2_CALL
00105 woden_soap_fault_code_get_soap_fault_code_any(
00106         const axis2_env_t *env);
00107 
00108 #define WODEN_SOAP_FAULT_CODE_FREE(soap_fault_code, env) \
00109       (((woden_soap_fault_code_t *) soap_fault_code)->ops->\
00110          free (soap_fault_code, env))
00111 
00112 #define WODEN_SOAP_FAULT_CODE_IS_QNAME(soap_fault_code, env) \
00113       (((woden_soap_fault_code_t *) soap_fault_code)->ops->\
00114          is_qname (soap_fault_code, env))
00115 
00116 #define WODEN_SOAP_FAULT_CODE_IS_TOKEN(soap_fault_code, env) \
00117       (((woden_soap_fault_code_t *) soap_fault_code)->ops->\
00118          is_token (soap_fault_code, env))
00119 
00120 #define WODEN_SOAP_FAULT_CODE_GET_QNAME(soap_fault_code, env) \
00121       (((woden_soap_fault_code_t *) soap_fault_code)->ops->\
00122          get_qname (soap_fault_code, env))
00123 
00124 #define WODEN_SOAP_FAULT_CODE_GET_TOKEN(soap_fault_code, env) \
00125       (((woden_soap_fault_code_t *) soap_fault_code)->ops->\
00126          get_token (soap_fault_code, env))
00127 
00128 
00130 #ifdef __cplusplus
00131 }
00132 #endif
00133 #endif /* WODEN_SOAP_FAULT_CODE_H */

Generated on Wed Dec 20 20:34:50 2006 for Axis2/C by  doxygen 1.5.1