woden_nc_name.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 WODEN_NC_NAME_H
00019 #define WODEN_NC_NAME_H
00020 
00029 #include <axis2_allocator.h>
00030 #include <axis2_env.h>
00031 #include <axis2_error.h>
00032 #include <axis2_string.h>
00033 #include <axis2_utils.h>
00034 #include <axis2_hash.h>
00035 #include <axis2_uri.h>
00036 #include <woden.h>
00037 
00038 #ifdef __cplusplus
00039 extern "C"
00040 {
00041 #endif
00042 
00043 typedef struct woden_nc_name woden_nc_name_t;
00044 typedef struct woden_nc_name_ops woden_nc_name_ops_t;
00045 struct axis2_xml_nc_name;
00046 
00052 struct woden_nc_name_ops
00053 {
00058     axis2_status_t (AXIS2_CALL *
00059     free) (
00060             void *nc_name,
00061             const axis2_env_t *env);
00062  
00063     axis2_bool_t (AXIS2_CALL *
00064     is_valid) (
00065             void *nc_name,
00066             const axis2_env_t *env,
00067             axis2_char_t *st_value);
00068 
00073     axis2_status_t (AXIS2_CALL *
00074     set_value) (
00075             void *nc_name,
00076             const axis2_env_t *env,
00077             axis2_char_t *value);
00078 
00079     axis2_char_t *(AXIS2_CALL *
00080     to_string) (
00081             void *nc_name,
00082             const axis2_env_t *env);
00083 
00084    
00085 };
00086 
00087 struct woden_nc_name
00088 {
00089     woden_nc_name_ops_t *ops;
00090 };
00091 
00092 AXIS2_EXTERN woden_nc_name_t * AXIS2_CALL
00093 woden_nc_name_create(
00094         const axis2_env_t *env,
00095         axis2_char_t *value);
00096 
00097 #define WODEN_NC_NAME_FREE(nc_name, env) \
00098       (((woden_nc_name_t *) nc_name)->ops->free (nc_name, env))
00099 
00100 #define WODEN_NC_NAME_IS_VALID(nc_name, env, st_value) \
00101       (((woden_nc_name_t *) nc_name)->ops-> \
00102          is_valid (nc_name, env, st_value))
00103 
00104 #define WODEN_NC_NAME_SET_VALUE(nc_name, env, value) \
00105       (((woden_nc_name_t *) nc_name)->ops-> \
00106          set_value (nc_name, env, value))
00107 
00108 #define WODEN_NC_NAME_TO_STRING(nc_name, env) \
00109       (((woden_nc_name_t *) nc_name)->ops-> \
00110          to_string (nc_name, env))
00111 
00112 
00114 #ifdef __cplusplus
00115 }
00116 #endif
00117 #endif /* WODEN_NC_NAME_H */

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