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

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