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

Generated on Wed Dec 20 20:34:50 2006 for Axis2/C by  doxygen 1.5.1