axiom_soap_fault_value.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 AXIOM_SOAP_FAULT_VALUE_H
00018  #define AXIOM_SOAP_FAULT_VALUE_H
00019  
00024 #include <axis2_env.h>
00025 #include <axiom_soap_fault.h>
00026 #include <axiom_soap_fault_sub_code.h>
00027 
00028 #ifdef __cplusplus
00029 extern "C"
00030 {
00031 #endif
00032 
00033 typedef struct axiom_soap_fault_value_ops axiom_soap_fault_value_ops_t;
00034 typedef struct axiom_soap_fault_value axiom_soap_fault_value_t;
00045  AXIS2_DECLARE_DATA   struct axiom_soap_fault_value_ops
00046     {
00055         axis2_status_t (AXIS2_CALL *
00056       free_fn)(axiom_soap_fault_value_t *fault_value,
00057                  const axis2_env_t *env);
00058       
00065       axis2_char_t* (AXIS2_CALL *
00066       get_text)(axiom_soap_fault_value_t *fault_value,
00067             const axis2_env_t *env);   
00068       
00075         axiom_node_t* (AXIS2_CALL *
00076       get_base_node)(axiom_soap_fault_value_t *fault_value,
00077                        const axis2_env_t *env);
00085         axis2_status_t (AXIS2_CALL *
00086       set_text)(axiom_soap_fault_value_t *fault_value,
00087             const axis2_env_t *env, axis2_char_t *text);   
00088             
00089     };      
00090 
00095     struct axiom_soap_fault_value
00096     {
00098         axiom_soap_fault_value_ops_t *ops;
00099        
00100     };
00101 
00106 AXIS2_EXTERN axiom_soap_fault_value_t * AXIS2_CALL
00107 axiom_soap_fault_value_create_with_subcode(const axis2_env_t *env,
00108                             axiom_soap_fault_sub_code_t *parent);
00109 
00110 AXIS2_EXTERN axiom_soap_fault_value_t * AXIS2_CALL
00111 axiom_soap_fault_value_create_with_code(const axis2_env_t *env,
00112                             axiom_soap_fault_code_t *parent);  
00113 
00114 
00115                              
00116 
00117 /******************** Macros **************************************************/
00118     
00119     
00121 #define AXIOM_SOAP_FAULT_VALUE_FREE(fault_value , env) \
00122         ((fault_value)->ops->free_fn(fault_value, env))
00123         
00124 #define AXIOM_SOAP_FAULT_VALUE_GET_BASE_NODE(fault_value, env) \
00125         ((fault_value)->ops->get_base_node(fault_value, env))         
00126 
00127 #define AXIOM_SOAP_FAULT_VALUE_GET_TEXT(fault_value, env) \
00128       ((fault_value)->ops->get_text(fault_value, env))
00129       
00130 #define AXIOM_SOAP_FAULT_VALUE_SET_TEXT(fault_value, env, text) \
00131         ((fault_value)->ops->set_text(fault_value, env, text))      
00132 
00134 #ifdef __cplusplus
00135 }
00136 #endif 
00137  
00138 #endif /* AXIOM_SOAP_FAULT_VALUE_H */

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