axiom_soap_fault_role.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_ROLE_H
00018  #define AXIOM_SOAP_FAULT_ROLE_H
00019  
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_role_ops axiom_soap_fault_role_ops_t;
00034     typedef struct axiom_soap_fault_role axiom_soap_fault_role_t;
00045     struct axiom_soap_fault_role_ops
00046     {
00055         axis2_status_t (AXIS2_CALL *
00056       free_fn)(axiom_soap_fault_role_t *fault_role,
00057                  const axis2_env_t *env);
00058 
00059         axis2_status_t (AXIS2_CALL *
00060       set_role_value)(axiom_soap_fault_role_t *fault_role,
00061                         const axis2_env_t *env,
00062                         axis2_char_t* uri);
00063                                      
00064         axis2_char_t* (AXIS2_CALL *
00065       get_role_value)(axiom_soap_fault_role_t *fault_role,
00066                         const axis2_env_t *env);
00067                                      
00068         axiom_node_t* (AXIS2_CALL *
00069       get_base_node)(axiom_soap_fault_role_t *fault_role,
00070                        const axis2_env_t *env);
00071                                                                                                                    
00072     };      
00073 
00078     struct axiom_soap_fault_role
00079     {
00081         axiom_soap_fault_role_ops_t *ops;
00082        
00083     };
00084 
00090 AXIS2_EXTERN axiom_soap_fault_role_t * AXIS2_CALL
00091 axiom_soap_fault_role_create_with_parent(const axis2_env_t *env,
00092                             axiom_soap_fault_t *fault);
00093                             
00094 /******************** Macros **************************************************/
00095     
00096     
00098 #define AXIOM_SOAP_FAULT_ROLE_FREE(fault_role , env) \
00099         ((fault_role)->ops->free_fn(fault_role, env))
00100 
00101 #define AXIOM_SOAP_FAULT_ROLE_GET_VALUE(fault_role , env) \
00102         ((fault_role)->ops->get_role_value(fault_role, env)) 
00103         
00104 #define AXIOM_SOAP_FAULT_ROLE_GET_BASE_NODE(fault_role, env) \
00105         ((fault_role)->ops->get_base_node(fault_role, env))         
00106 
00107 #define AXIOM_SOAP_FAULT_ROLE_SET_VALUE(fault_role , env, value) \
00108         ((fault_role)->ops->set_role_value(fault_role, env, value))
00109 
00111 #ifdef __cplusplus
00112 }
00113 #endif
00114  
00115 #endif /* AXIOM_SOAP_FAULT_ROLE_H */

Generated on Thu Oct 26 21:11:23 2006 for Axis2/C by  doxygen 1.4.7