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

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