axiom_soap_fault_role.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_ROLE_H
00019  #define AXIOM_SOAP_FAULT_ROLE_H
00020  
00021  
00026 #include <axis2_env.h>
00027 #include <axiom_soap_fault.h>
00028 
00029 #ifdef __cplusplus
00030 extern "C"
00031 {
00032 #endif
00033 
00034     typedef struct axiom_soap_fault_role_ops axiom_soap_fault_role_ops_t;
00035     typedef struct axiom_soap_fault_role axiom_soap_fault_role_t;
00046     struct axiom_soap_fault_role_ops
00047     {
00056         axis2_status_t (AXIS2_CALL *
00057       free_fn)(axiom_soap_fault_role_t *fault_role,
00058                  const axis2_env_t *env);
00059 
00060         axis2_status_t (AXIS2_CALL *
00061       set_role_value)(axiom_soap_fault_role_t *fault_role,
00062                         const axis2_env_t *env,
00063                         axis2_char_t* uri);
00064                                      
00065         axis2_char_t* (AXIS2_CALL *
00066       get_role_value)(axiom_soap_fault_role_t *fault_role,
00067                         const axis2_env_t *env);
00068                                      
00069         axiom_node_t* (AXIS2_CALL *
00070       get_base_node)(axiom_soap_fault_role_t *fault_role,
00071                        const axis2_env_t *env);
00072                                                                                                                    
00073     };      
00074 
00079     struct axiom_soap_fault_role
00080     {
00082         axiom_soap_fault_role_ops_t *ops;
00083        
00084     };
00085 
00091 AXIS2_EXTERN axiom_soap_fault_role_t * AXIS2_CALL
00092 axiom_soap_fault_role_create_with_parent(const axis2_env_t *env,
00093                             axiom_soap_fault_t *fault);
00094                             
00095 /******************** Macros **************************************************/
00096     
00097     
00099 #define AXIOM_SOAP_FAULT_ROLE_FREE(fault_role , env) \
00100         ((fault_role)->ops->free_fn(fault_role, env))
00101 
00102 #define AXIOM_SOAP_FAULT_ROLE_GET_VALUE(fault_role , env) \
00103         ((fault_role)->ops->get_role_value(fault_role, env)) 
00104         
00105 #define AXIOM_SOAP_FAULT_ROLE_GET_BASE_NODE(fault_role, env) \
00106         ((fault_role)->ops->get_base_node(fault_role, env))         
00107 
00108 #define AXIOM_SOAP_FAULT_ROLE_SET_VALUE(fault_role , env, value) \
00109         ((fault_role)->ops->set_role_value(fault_role, env, value))
00110 
00112 #ifdef __cplusplus
00113 }
00114 #endif
00115  
00116 #endif /* AXIOM_SOAP_FAULT_ROLE_H */

Generated on Wed Dec 20 20:34:49 2006 for Axis2/C by  doxygen 1.5.1