w2c_emitter.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 W2C_EMITTER_H
00018 #define W2C_EMITTER_H
00019 
00025 #include <axis2_utils.h>
00026 #include <w2c_engine_configuration.h>
00027 #include <w2c_config_property_loader.h>
00028 
00029 #ifdef __cplusplus
00030 extern "C"
00031 {
00032 #endif
00033 
00040 typedef struct w2c_emitter w2c_emitter_t;
00041 typedef struct w2c_emitter_ops w2c_emitter_ops_t;
00042 
00043 AXIS2_DECLARE_DATA  struct w2c_emitter_ops
00044 {
00052     axis2_status_t (AXIS2_CALL *
00053     free)(w2c_emitter_t *emitter,
00054          const axis2_env_t *env);
00055 
00065     axis2_status_t (AXIS2_CALL *
00066     set_config)(w2c_emitter_t *emitter,
00067           const axis2_env_t *env,
00068           w2c_engine_configuration_t *config,
00069           w2c_config_property_loader_t *loader );
00070  
00076     axis2_status_t (AXIS2_CALL *
00077     emit_skel)(w2c_emitter_t *emitter,
00078           const axis2_env_t *env);
00079   
00085     axis2_status_t (AXIS2_CALL *
00086     emit_stub)(w2c_emitter_t *emitter,
00087           const axis2_env_t *env);
00088 
00089 };
00090 
00091 AXIS2_DECLARE_DATA  struct w2c_emitter
00092 {
00093      struct w2c_emitter_ops *ops;
00094 };
00095 
00098 /*************************** Function macros **********************************/
00099 
00100 #define W2C_EMITTER_FREE(emitter, env) \
00101       ((emitter)->ops->free (emitter, env)) 
00102 
00103 #define W2C_EMITTER_SET_CONFIG(emitter, env, config, loader) \
00104       ((emitter)->ops->set_config(emitter, env, config, loader))
00105 
00106 #define W2C_EMITTER_EMIT_SKEL(emitter, env) \
00107       ((emitter)->ops->emit_skel(emitter, env ))
00108 
00109 #define W2C_EMITTER_EMIT_STUB(emitter, env) \
00110       ((emitter)->ops->emit_stub(emitter, env ))
00111 
00114 #ifdef __cplusplus
00115 }
00116 #endif
00117 
00118 #endif /* W2C_EMITTER_H */

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