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

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