xml_schema_content_processing.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_CONTENT_PROCESSING_H
00019 #define XML_SCHEMA_CONTENT_PROCESSING_H
00020 
00028 #include <xml_schema_defines.h>
00029 #include <xml_schema_enum.h>
00030 
00037 #ifdef __cplusplus
00038 extern "C"
00039 {
00040 #endif
00041 
00042 
00043 typedef struct xml_schema_content_processing 
00044         xml_schema_content_processing_t;
00045         
00046 typedef struct xml_schema_content_processing_ops 
00047         xml_schema_content_processing_ops_t;
00048 
00049 struct xml_schema_content_processing_ops
00050 {
00055     axis2_status_t (AXIS2_CALL *
00056     free) (void *content_processing,
00057             const axis2_env_t *env);
00058 
00059     axis2_hash_t *(AXIS2_CALL *
00060     super_objs) (void *content_processing,
00061             const axis2_env_t *env);
00062 
00063     xml_schema_types_t (AXIS2_CALL *
00064     get_type) (void *content_processing,
00065             const axis2_env_t *env);
00066 
00067     xml_schema_enum_t *(AXIS2_CALL *
00068     get_base_impl) (void *content_processing,
00069                     const axis2_env_t *env);
00070 
00071     axis2_array_list_t *(AXIS2_CALL *
00072     get_values)(void *content_processing,
00073                 const axis2_env_t *env);
00074     
00075 };
00076 
00077 struct xml_schema_content_processing
00078 {
00079     xml_schema_enum_t base;
00080     xml_schema_content_processing_ops_t *ops;
00081 };
00082 
00083 AXIS2_EXTERN xml_schema_content_processing_t * AXIS2_CALL
00084 xml_schema_content_processing_create(const axis2_env_t *env,
00085                                      const axis2_char_t* value);
00086 
00087 /*********************** macros ***********************************************/
00088 
00089 #define XML_SCHEMA_CONTENT_PROCESSING_FREE(content_processing, env) \
00090       (((xml_schema_content_processing_t *) content_processing)->ops->\
00091          free(content_processing, env))
00092 
00093 #define XML_SCHEMA_CONTENT_PROCESSING_SUPER_OBJS(content_processing, env) \
00094       (((xml_schema_content_processing_t *) content_processing)->ops->\
00095          super_objs(content_processing, env))
00096 
00097 #define XML_SCHEMA_CONTENT_PROCESSING_GET_TYPE(content_processing, env) \
00098       (((xml_schema_content_processing_t *) content_processing)->ops->\
00099          get_type(content_processing, env))
00100 
00101 
00102 #define XML_SCHEMA_CONTENT_PROCESSING_GET_BASE_IMPL(content_processing, env) \
00103       (((xml_schema_content_processing_t *) content_processing)->ops->\
00104          get_base_impl(content_processing, env))
00105 
00106 #define XML_SCHEMA_CONTENT_PROCESSING_GET_VALUES(content_processing, env) \
00107       (((xml_schema_content_processing_t *) content_processing)->ops->\
00108          get_values(content_processing, env))
00109 
00110 
00112 #ifdef __cplusplus
00113 }
00114 #endif
00115 #endif /* XML_SCHEMA_CONTENT_PROCESSING_H */

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