w2c_schema_compiler.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_SCHEMA_COMPILER_H
00018 #define W2C_SCHEMA_COMPILER_H
00019 
00025 #include <axis2_utils.h>
00026 #include <w2c_schema_compiler_options.h>
00027 #include <xml_schema.h>
00028 #include <w2c_typemapper.h>
00029 
00030 #ifdef __cplusplus
00031 extern "C"
00032 {
00033 #endif
00034 
00040 typedef struct w2c_schema_compiler w2c_schema_compiler_t;
00041 typedef struct w2c_schema_compiler_ops w2c_schema_compiler_ops_t;
00042 
00043 AXIS2_DECLARE_DATA  struct w2c_schema_compiler_ops
00044 {
00052     axis2_status_t (AXIS2_CALL *
00053     free)(w2c_schema_compiler_t *schema_compiler,
00054          const axis2_env_t *env);
00055 
00064     axis2_status_t (AXIS2_CALL *
00065     compile)( w2c_schema_compiler_t *compiler,
00066                 const axis2_env_t *env,
00067                 xml_schema_t *xml_schema);
00068 
00076     w2c_typemapper_t *(AXIS2_CALL *
00077     compile_schema_list)( w2c_schema_compiler_t *compiler,
00078                 const axis2_env_t *env,
00079                 axis2_array_list_t *schema_list);
00080 
00081 };
00082 
00083 AXIS2_DECLARE_DATA  struct w2c_schema_compiler
00084 {
00085      struct w2c_schema_compiler_ops *ops;
00086 };
00087 
00094 AXIS2_EXTERN w2c_schema_compiler_t* AXIS2_CALL
00095 w2c_schema_compiler_create( const axis2_env_t *env,
00096                 w2c_schema_compiler_options_t *options);
00097 
00098 /*************************** Function macros **********************************/
00099 
00100 #define W2C_SCHEMA_COMPILER_FREE(schema_compiler, env) \
00101       ((schema_compiler)->ops->free (schema_compiler, env)) 
00102 
00103 #define W2C_SCHEMA_COMPILER_COMPILE_SCHEMA_LIST(schema_compiler, env, list) \
00104       ((schema_compiler)->ops->compile_schema_list(schema_compiler, env, list)) 
00105 
00106 #define W2C_SCHEMA_COMPILER_COMPILE(schema_compiler, env, schema) \
00107       ((schema_compiler)->ops->compile(schema_compiler, env, schema)) 
00108 
00111 #ifdef __cplusplus
00112 }
00113 #endif
00114 
00115 #endif /* W2C_SCHEMA_COMPILER_H */

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