axis2_any_content_type.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_ANY_CONTENT_TYPE_H
00018 #define AXIS2_ANY_CONTENT_TYPE_H
00019 
00032 #include <axis2_defines.h>
00033 #include <axis2_env.h>
00034 #include <axis2_const.h>
00035 #include <axis2_hash.h>
00036 #include <axis2_qname.h>
00037 
00038 #ifdef __cplusplus
00039 extern "C"
00040 {
00041 #endif
00042 
00044     typedef struct axis2_any_content_type axis2_any_content_type_t;
00046     typedef struct axis2_any_content_type_ops axis2_any_content_type_ops_t;
00047 
00051     struct axis2_any_content_type_ops
00052     {
00061         axis2_status_t (AXIS2_CALL *
00062                 add_value)(
00063                     struct axis2_any_content_type *any_content_type,
00064                     const axis2_env_t *env,
00065                     axis2_qname_t *qname,
00066                     axis2_char_t *value);
00067 
00076         axis2_char_t *(AXIS2_CALL *
00077                 get_value)(
00078                     const axis2_any_content_type_t *any_content_type,
00079                     const axis2_env_t *env,
00080                     axis2_qname_t *qname);
00088         axis2_hash_t *(AXIS2_CALL *
00089                 get_value_map)(
00090                     const axis2_any_content_type_t *any_content_type,
00091                     const axis2_env_t *env);
00092 
00099         axis2_status_t (AXIS2_CALL *
00100                 free)(
00101                     struct axis2_any_content_type *any_content_type,
00102                     const axis2_env_t *env);
00103 
00104     };
00105 
00109     struct axis2_any_content_type
00110     {
00112         axis2_any_content_type_ops_t *ops;
00113     };
00114 
00115 
00121     AXIS2_EXTERN axis2_any_content_type_t *AXIS2_CALL
00122     axis2_any_content_type_create(
00123         const axis2_env_t *env);
00124 
00125 
00126 /**************************** Start of function macros ************************/
00127 
00130 #define AXIS2_ANY_CONTENT_TYPE_ADD_VALUE(any_content_type, env, qname, value) \
00131     ((any_content_type)->ops->add_value(any_content_type, env, qname, value))
00132 
00135 #define AXIS2_ANY_CONTENT_TYPE_GET_VALUE(any_content_type, env, qname) \
00136     ((any_content_type)->ops->get_value(any_content_type, env, qname))
00137 
00140 #define AXIS2_ANY_CONTENT_TYPE_GET_VALUE_MAP(any_content_type, env) \
00141     ((any_content_type)->ops->get_value_map(any_content_type, env))
00142 
00145 #define AXIS2_ANY_CONTENT_TYPE_FREE(any_content_type, env) \
00146     ((any_content_type)->ops->free(any_content_type, env))
00147 
00148 
00151 #ifdef __cplusplus
00152 }
00153 #endif
00154 
00155 #endif    /* AXIS2_ANY_CONTENT_TYPE_H */

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