axiom_children_qname_iterator.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 AXIOM_CHILDREN_QNAME_ITERATOR_H
00019  #define AXIOM_CHILDREN_QNAME_ITERATOR_H
00020  
00026  #include <axiom_node.h>
00027  #include <axiom_namespace.h>
00028  #include <axis2_qname.h>
00029  
00030  
00031  #ifdef __cplusplus
00032 extern "C"
00033 {
00034 #endif
00035 
00036 typedef struct axiom_children_qname_iterator_ops axiom_children_qname_iterator_ops_t;
00037 typedef struct axiom_children_qname_iterator axiom_children_qname_iterator_t;
00038 
00050      struct axiom_children_qname_iterator_ops
00051     {
00055         axis2_status_t (AXIS2_CALL *
00056       free_fn)(axiom_children_qname_iterator_t *iterator,
00057                  const axis2_env_t *env);
00058                              
00066         axis2_status_t (AXIS2_CALL *
00067       remove)(axiom_children_qname_iterator_t *iterator,
00068                 const axis2_env_t *env);
00069                              
00076         axis2_bool_t (AXIS2_CALL *
00077       has_next)(axiom_children_qname_iterator_t *iterator,
00078                   const axis2_env_t *env);
00079     
00083         axiom_node_t* (AXIS2_CALL *
00084       next)(axiom_children_qname_iterator_t *iterator,
00085               const axis2_env_t *env);
00086                              
00087                         
00088         
00089     };
00090 
00091 struct axiom_children_qname_iterator
00092 {
00093     axiom_children_qname_iterator_ops_t *ops;
00094 };
00095 
00096 AXIS2_EXTERN axiom_children_qname_iterator_t * AXIS2_CALL
00097 axiom_children_qname_iterator_create(const axis2_env_t *env,
00098                                         axiom_node_t *current_child,
00099                                         axis2_qname_t *given_qname);
00100  
00101 
00102 #define AXIOM_CHILDREN_QNAME_ITERATOR_FREE(iterator, env) \
00103         ((iterator)->ops->free_fn(iterator, env))
00104 
00105 #define AXIOM_CHILDREN_QNAME_ITERATOR_REMOVE(iterator, env) \
00106         ((iterator)->ops->remove(iterator, env))
00107 
00108 #define AXIOM_CHILDREN_QNAME_ITERATOR_HAS_NEXT(iterator, env) \
00109         ((iterator)->ops->has_next(iterator, env))
00110 
00111 #define AXIOM_CHILDREN_QNAME_ITERATOR_NEXT(iterator, env) \
00112         ((iterator)->ops->next(iterator, env))
00113 
00116 #ifdef __cplusplus
00117 }
00118 #endif
00119  
00120 #endif /* AXIOM_CHILDREN_QNAME_ITERATOR_H */

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