axiom_soap_fault_node.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_NODE_H
00019  #define AXIOM_SOAP_FAULT_NODE_H
00020  
00025 #include <axis2_env.h>
00026 #include <axiom_soap_fault.h>
00027 
00028 #ifdef __cplusplus
00029 extern "C"
00030 {
00031 #endif
00032 
00033     typedef struct axiom_soap_fault_node_ops axiom_soap_fault_node_ops_t;
00034     typedef struct axiom_soap_fault_node axiom_soap_fault_node_t;
00045     struct axiom_soap_fault_node_ops
00046     {
00055         axis2_status_t (AXIS2_CALL *
00056       free_fn) (axiom_soap_fault_node_t *fault_node,
00057                   const axis2_env_t *env);
00058 
00059         axis2_status_t (AXIS2_CALL *
00060       set_value)(axiom_soap_fault_node_t *fault_node,
00061                    const axis2_env_t *env,
00062                    axis2_char_t *fault_val);
00063                                      
00064         axis2_char_t* (AXIS2_CALL *
00065       get_value)(axiom_soap_fault_node_t *fault_node,
00066                    const axis2_env_t *env);
00067     
00068         axiom_node_t* (AXIS2_CALL *
00069       get_base_node)(axiom_soap_fault_node_t *fault_node,
00070                        const axis2_env_t *env);
00071     };      
00072 
00077     struct axiom_soap_fault_node
00078     {
00080         axiom_soap_fault_node_ops_t *ops;
00081        
00082     };
00083 
00088 AXIS2_EXTERN axiom_soap_fault_node_t * AXIS2_CALL
00089 axiom_soap_fault_node_create_with_parent(const axis2_env_t *env,
00090                                          axiom_soap_fault_t *fault);
00091                             
00092 
00093 /******************** Macros **************************************************/
00094     
00095     
00097 #define AXIOM_SOAP_FAULT_NODE_FREE(fault_node , env) \
00098         ((fault_node)->ops->free_fn(fault_node, env))
00099 
00100 #define AXIOM_SOAP_FAULT_NODE_GET_VALUE(fault_node , env) \
00101         ((fault_node)->ops->get_value(fault_node, env)) 
00102         
00103 #define AXIOM_SOAP_FAULT_NODE_GET_BASE_NODE(fault_node, env) \
00104         ((fault_node)->ops->get_base_node(fault_node, env))         
00105 
00106 #define AXIOM_SOAP_FAULT_NODE_SET_VALUE(fault_node , env, uri) \
00107         ((fault_node)->ops->set_value(fault_node, env, uri))        
00108         
00111 #ifdef __cplusplus
00112 }
00113 #endif
00114 
00115 #endif /* AXIOM_SOAP_FAULT_NODE_H */

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