axiom_children_with_specific_attribute_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_WITH_SPECIFIC_ATTRIBUTE_ITERATOR_H
00019  #define AXIOM_CHILDREN_WITH_SPECIFIC_ATTRIBUTE_ITERATOR_H
00020  
00026 #include <axiom_node.h>
00027 #include <axiom_text.h>
00028 #include <axis2_qname.h>
00029   
00030 
00031 #ifdef __cplusplus
00032 extern "C"
00033 {
00034 #endif
00035 
00036 typedef struct axiom_children_with_specific_attribute_iterator_ops 
00037                     axiom_children_with_specific_attribute_iterator_ops_t;
00038 
00039 typedef struct axiom_children_with_specific_attribute_iterator 
00040                     axiom_children_with_specific_attribute_iterator_t;
00041 
00052      struct axiom_children_with_specific_attribute_iterator_ops
00053     {
00057         axis2_status_t (AXIS2_CALL *
00058       free_fn)(axiom_children_with_specific_attribute_iterator_t *iterator,
00059                  const axis2_env_t *env);
00060                              
00068         axis2_status_t (AXIS2_CALL *
00069       remove)(axiom_children_with_specific_attribute_iterator_t *iterator,
00070                 const axis2_env_t *env);
00071                              
00078         axis2_bool_t (AXIS2_CALL *
00079       has_next)(axiom_children_with_specific_attribute_iterator_t *iterator,
00080                   const axis2_env_t *env);
00081     
00086         axiom_node_t* (AXIS2_CALL *
00087       next)(axiom_children_with_specific_attribute_iterator_t *iterator,
00088               const axis2_env_t *env);
00089     
00090     
00091     
00092     };
00093     
00094     
00095 struct axiom_children_with_specific_attribute_iterator
00096 {
00097     axiom_children_with_specific_attribute_iterator_ops_t *ops;
00098 };    
00099 
00106 AXIS2_EXTERN  axiom_children_with_specific_attribute_iterator_t * AXIS2_CALL
00107 axiom_children_with_specific_attribute_iterator_create(
00108                                   const axis2_env_t *env, 
00109                                   axiom_node_t *current_child,
00110                                   axis2_qname_t *attr_qname,
00111                                   axis2_char_t *attr_value,
00112                                   axis2_bool_t detach);
00113                                   
00114 /************ Macros *********************************************/
00115 
00116 #define AXIOM_CHILDREN_WITH_SPECIFIC_ATTRIBUTE_ITERATOR_FREE(iterator, env) \
00117         ((iterator)->ops->free_fn(iterator, env))
00118 
00119 #define AXIOM_CHILDREN_WITH_SPECIFIC_ATTRIBUTE_ITERATOR_REMOVE(iterator, env) \
00120         ((iterator)->ops->remove(iterator, env))
00121         
00122 #define AXIOM_CHILDREN_WITH_SPECIFIC_ATTRIBUTE_ITERATOR_HAS_NEXT(iterator, env) \
00123         ((iterator)->ops->has_next(iterator, env))
00124         
00125 #define AXIOM_CHILDREN_WITH_SPECIFIC_ATTRIBUTE_ITERATOR_NEXT(iterator, env) \
00126         ((iterator)->ops->next(iterator, env))        
00127         
00128               
00131 #ifdef __cplusplus
00132 }
00133 #endif
00134 
00135 
00136 #endif /* AXIOM_CHILDREN_WITH_SPECIFIC_ATTRIBUTE_ITERATOR_H */

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