axiom_soap_fault_text.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_TEXT_H
00018  #define AXIOM_SOAP_FAULT_TEXT_H
00019  
00024 #include <axis2_env.h>
00025 #include <axiom_soap_fault_reason.h>
00026 
00027 #ifdef __cplusplus
00028 extern "C"
00029 {
00030 #endif
00031 
00032     typedef struct axiom_soap_fault_text_ops axiom_soap_fault_text_ops_t;
00033     typedef struct axiom_soap_fault_text axiom_soap_fault_text_t;
00044  AXIS2_DECLARE_DATA   struct axiom_soap_fault_text_ops
00045     {
00054         axis2_status_t (AXIS2_CALL *
00055       free_fn)(axiom_soap_fault_text_t *fault_text,
00056                  const axis2_env_t *env);
00057 
00058         axis2_status_t (AXIS2_CALL *
00059       set_lang)(axiom_soap_fault_text_t *fault_text,
00060                   const axis2_env_t *env,
00061                   const axis2_char_t* lang);
00062                                      
00063         axis2_char_t* (AXIS2_CALL *
00064       get_lang)(axiom_soap_fault_text_t *fault_text,
00065                   const axis2_env_t *env);
00066     
00067         axiom_node_t* (AXIS2_CALL *
00068       get_base_node)(axiom_soap_fault_text_t *fault_text,
00069                        const axis2_env_t *env);
00070                        
00071         axis2_status_t (AXIS2_CALL *
00072         set_text)(axiom_soap_fault_text_t *fault_text,
00073                   const axis2_env_t *env,
00074                   axis2_char_t *value,
00075                   axis2_char_t *lang);
00076                   
00077         axis2_char_t * (AXIS2_CALL *
00078         get_text)(axiom_soap_fault_text_t *fault_text,
00079                   const axis2_env_t *env);
00080                                                             
00081     };      
00082 
00087     struct axiom_soap_fault_text
00088     {
00090         axiom_soap_fault_text_ops_t *ops;
00091        
00092     };
00093 
00098 AXIS2_EXTERN axiom_soap_fault_text_t * AXIS2_CALL
00099 axiom_soap_fault_text_create_with_parent(const axis2_env_t *env,
00100                             axiom_soap_fault_reason_t *fault);
00101                             
00102 /******************** Macros **************************************************/
00103     
00105 #define AXIOM_SOAP_FAULT_TEXT_FREE(fault_text , env) \
00106         ((fault_text)->ops->free_fn(fault_text, env))
00107 
00108 #define AXIOM_SOAP_FAULT_TEXT_SET_LANG(fault_text , env, lang) \
00109         ((fault_text)->ops->set_lang(fault_text, env, lang))
00110         
00111 #define AXIOM_SOAP_FAULT_TEXT_GET_LANG(fault_text , env) \
00112         ((fault_text)->ops->get_lang(fault_text, env)) 
00113         
00114 #define AXIOM_SOAP_FAULT_TEXT_GET_BASE_NODE(fault_text, env) \
00115         ((fault_text)->ops->get_base_node(fault_text, env))         
00116 
00117 #define AXIOM_SOAP_FAULT_TEXT_SET_TEXT(fault_text, env, value, lang) \
00118         ((fault_text)->ops->set_text(fault_text, env, value, lang))
00119 
00120 #define AXIOM_SOAP_FAULT_TEXT_GET_TEXT(fault_text, env) \
00121         ((fault_text)->ops->get_text(fault_text, env))        
00122 
00124 #ifdef __cplusplus
00125 }
00126 #endif 
00127  
00128 #endif /* AXIOM_SOAP_FAULT_TEXT_H */

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