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

Generated on Thu Aug 31 17:32:37 2006 for Axis2/C by  doxygen 1.4.6