woden_nested_configurable.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 WODEN_NESTED_CONFIGURABLE_H
00019 #define WODEN_NESTED_CONFIGURABLE_H
00020 
00031 #include <woden.h>
00032 #include <woden_nested_component.h>
00033 #include <woden_nested_element.h>
00034 #include <woden_configurable.h>
00035 
00041 typedef union woden_nested_configurable_base woden_nested_configurable_base_t;
00042 typedef struct woden_nested_configurable woden_nested_configurable_t;
00043 typedef struct woden_nested_configurable_ops woden_nested_configurable_ops_t;
00044 
00045 #ifdef __cplusplus
00046 extern "C"
00047 {
00048 #endif
00049 
00050 struct woden_nested_configurable_ops
00051 {
00056     axis2_status_t (AXIS2_CALL *
00057     free) (
00058             void *nested_configurable,
00059             const axis2_env_t *env);
00060 
00061     axis2_status_t (AXIS2_CALL *
00062     to_nested_configurable_free) (
00063             void *nested_configurable,
00064             const axis2_env_t *env);
00065 
00066     axis2_hash_t *(AXIS2_CALL *
00067     super_objs) (
00068             void *nested_configurable,
00069             const axis2_env_t *env);
00070     
00074     struct woden_configurable *(AXIS2_CALL *
00075     get_base_impl) (
00076             void *nested_configurable,
00077             const axis2_env_t *env);
00078 
00079 };
00080 
00081 union woden_nested_configurable_base
00082 {
00083     woden_configurable_t configurable;
00084     woden_nested_element_t nested_element;
00085     woden_nested_component_t nested_component;
00086 };
00087 
00088 struct woden_nested_configurable
00089 {
00090     woden_nested_configurable_base_t base;
00091     woden_nested_configurable_ops_t *ops;
00092 };
00093 
00094 AXIS2_EXTERN woden_nested_configurable_t * AXIS2_CALL
00095 woden_nested_configurable_create(
00096         const axis2_env_t *env);
00097 
00098 /************************Woden C Internal Methods******************************/
00099 AXIS2_EXTERN woden_nested_configurable_t * AXIS2_CALL
00100 woden_nested_configurable_to_nested_element(
00101         void *nested_configurable,
00102         const axis2_env_t *env);
00103 
00104 AXIS2_EXTERN axis2_status_t AXIS2_CALL
00105 woden_nested_configurable_resolve_methods(
00106         woden_nested_configurable_t *nested_configurable,
00107         const axis2_env_t *env,
00108         woden_nested_configurable_t *nested_configurable_impl,
00109         axis2_hash_t *methods);
00110 /************************End of Woden C Internal Methods***********************/
00111 
00112 
00113 #define WODEN_NESTED_CONFIGURABLE_FREE(nested_configurable, env) \
00114       (((woden_nested_configurable_t *) nested_configurable)->ops->\
00115          free(nested_configurable, env))
00116 
00117 #define WODEN_NESTED_CONFIGURABLE_TO_NESTED_CONFIGURABLE_FREE(nested_configurable, env) \
00118       (((woden_nested_configurable_t *) nested_configurable)->ops->\
00119          to_nested_configurable_free(nested_configurable, env))
00120 
00121 #define WODEN_NESTED_CONFIGURABLE_SUPER_OBJS(nested_configurable, env) \
00122       (((woden_nested_configurable_t *) nested_configurable)->ops->\
00123          super_objs(nested_configurable, env))
00124 
00125 #define WODEN_NESTED_CONFIGURABLE_GET_BASE_IMPL(nested_configurable, env) \
00126       (((woden_nested_configurable_t *) nested_configurable)->ops->\
00127          get_base_impl(nested_configurable, env))
00128 
00130 #ifdef __cplusplus
00131 }
00132 #endif
00133 #endif /* WODEN_NESTED_CONFIGURABLE_H */

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