xml_schema_data_type.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 XML_SCHEMA_DATA_TYPE_H
00019 #define XML_SCHEMA_DATA_TYPE_H
00020 
00026 #include <axis2_allocator.h>
00027 #include <axis2_env.h>
00028 #include <axis2_error.h>
00029 #include <axis2_string.h>
00030 #include <axis2_array_list.h>
00031 #include <axis2_hash.h>
00032 
00033 #ifdef __cplusplus
00034 extern "C"
00035 {
00036 #endif
00037 
00038 typedef struct xml_schema_data_type xml_schema_data_type_t;
00039 typedef struct xml_schema_data_type_ops xml_schema_data_type_ops_t;
00040 struct xml_schema_tokenized_type;
00041 
00047 struct xml_schema_data_type_ops
00048 {
00053     axis2_status_t (AXIS2_CALL *
00054     free) (void *data_type,
00055             const axis2_env_t *env);
00056 
00057     void * (AXIS2_CALL *
00058     parse_value) (void *data_type,
00059                     const axis2_env_t *env,
00060                     void *input);
00061 
00062     void *(AXIS2_CALL *
00063     value_type) (void *data_type,
00064                     const axis2_env_t *env);
00065 
00066     struct xml_schema_tokenized_type *(AXIS2_CALL *
00067     tokenized_type) (void *data_type,
00068                         const axis2_env_t *env);
00069 
00070 };
00071 
00072 struct xml_schema_data_type
00073 {
00074     xml_schema_data_type_ops_t *ops;
00075 };
00076 
00077 AXIS2_EXTERN xml_schema_data_type_t * AXIS2_CALL
00078 xml_schema_data_type_create(const axis2_env_t *env);
00079 
00080 #define XML_SCHEMA_DATA_TYPE_FREE(data_type, env) \
00081       (((xml_schema_data_type_t *) data_type)->ops->free (data_type, env))
00082 
00083 #define XML_SCHEMA_DATA_TYPE_PARSE_VALUE(data_type, env, input) \
00084       (((xml_schema_data_type_t *) data_type)->ops->parse_value (\
00085         data_type, env, input))
00086 
00087 #define XML_SCHEMA_DATA_TYPE_VALUE_TYPE(data_type, env, line_num) \
00088       (((xml_schema_data_type_t *) data_type)->ops->value_type (\
00089         data_type, env, line_num))
00090 
00091 #define XML_SCHEMA_DATA_TYPE_TOKENIZED_TYPE(data_type, env) \
00092       (((xml_schema_data_type_t *) data_type)->ops->tokenized_type (\
00093         data_type, env))
00094 
00096 #ifdef __cplusplus
00097 }
00098 #endif
00099 #endif /* XML_SCHEMA_DATA_TYPE_H */

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