axis2_wsdl_extensible_attribute.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 AXIS2_WSDL_EXTENSIBLE_ATTRIBUTE_H
00018 #define AXIS2_WSDL_EXTENSIBLE_ATTRIBUTE_H
00019 
00025 #include <axis2_const.h>
00026 #include <axis2_error.h>
00027 #include <axis2_defines.h>
00028 #include <axis2_env.h>
00029 #include <axis2_allocator.h>
00030 #include <axis2_qname.h>
00031 
00032 #ifdef __cplusplus
00033 extern "C"
00034 {
00035 #endif
00036 
00037 typedef struct axis2_wsdl_extensible_attribute axis2_wsdl_extensible_attribute_t;
00038 typedef struct axis2_wsdl_extensible_attribute_ops axis2_wsdl_extensible_attribute_ops_t;
00039 
00049  struct axis2_wsdl_extensible_attribute_ops
00050 {
00054    axis2_status_t (AXIS2_CALL *free)(
00055                     axis2_wsdl_extensible_attribute_t *wsdl_extensible_attribute,
00056                  const axis2_env_t *env);
00057 
00058     axis2_qname_t *(AXIS2_CALL *
00059     get_key) (axis2_wsdl_extensible_attribute_t *extensible_attribute,
00060                const axis2_env_t *env);
00061     
00062     axis2_status_t (AXIS2_CALL *
00063     set_key) (axis2_wsdl_extensible_attribute_t *extensible_attribute,
00064                const axis2_env_t *env,
00065                axis2_qname_t *key);
00066     
00067     axis2_qname_t *(AXIS2_CALL *
00068     get_value) (axis2_wsdl_extensible_attribute_t *extensible_attribute,
00069                const axis2_env_t *env);
00070     
00071     axis2_status_t (AXIS2_CALL *
00072     set_value) (axis2_wsdl_extensible_attribute_t *extensible_attribute,
00073                const axis2_env_t *env,
00074                axis2_qname_t *value);
00075 };
00076 
00081  struct axis2_wsdl_extensible_attribute
00082 {
00083    axis2_wsdl_extensible_attribute_ops_t *ops;
00084 };
00085 
00090 AXIS2_EXTERN axis2_wsdl_extensible_attribute_t * AXIS2_CALL 
00091 axis2_wsdl_extensible_attribute_create (const axis2_env_t *env);
00092 
00093 /*************************** Function macros **********************************/
00094 
00095 #define AXIS2_WSDL_EXTENSIBLE_ATTRIBUTE_FREE(extensible_attribute, env) \
00096       ((extensible_attribute)->ops->free (extensible_attribute, env))
00097 
00098 #define AXIS2_WSDL_EXTENSIBLE_ATTRIBUTE_GET_KEY(extensible_attribute, env) \
00099       (extensible_attribute->ops->get_key (extensible_attribute, env))
00100 
00101 #define AXIS2_WSDL_EXTENSIBLE_ATTRIBUTE_SET_KEY(extensible_attribute, env, key) \
00102       ((extensible_attribute)->ops->set_key (extensible_attribute, env, key))       
00103 
00104 #define AXIS2_WSDL_EXTENSIBLE_ATTRIBUTE_GET_VALUE(extensible_attribute, env) \
00105       (extensible_attribute->ops->get_value (extensible_attribute, env))
00106 
00107 #define AXIS2_WSDL_EXTENSIBLE_ATTRIBUTE_SET_VALUE(extensible_attribute, env, value) \
00108       ((extensible_attribute)->ops->set_value (extensible_attribute, env, value))       
00109 
00110 
00111 /*************************** End of function macros ***************************/
00112 
00115 #ifdef __cplusplus
00116 }
00117 #endif
00118 #endif  /* AXIS2_WSDL_EXTENSIBLE_ATTRIBUTE_H */

Generated on Tue Oct 3 22:35:48 2006 for Axis2/C by  doxygen 1.4.7