12 #ifndef ZYPP_PARSER_XML_READER_H 13 #define ZYPP_PARSER_XML_READER_H 18 #include <zypp-core/base/InputStream> 121 bool nextNodeAttribute();
125 {
return( nextNodeAttribute() || nextNode() ); }
129 {
return( _node.readState() == XML_TEXTREADER_MODE_CLOSED ); }
146 if ( _node.isAttribute() )
148 for ( ; ! atEnd(); nextNode() )
150 if ( ! fnc_r( *
this ) )
159 if ( _node.isAttribute() && ! fnc_r( *
this ) )
161 while( nextNodeAttribute() )
163 if ( ! fnc_r( *
this ) )
172 for ( ; ! atEnd(); nextNodeOrAttribute() )
174 if ( ! fnc_r( *
this ) )
182 bool seekToNode(
int depth_r,
const std::string & name_r );
185 bool seekToEndNode(
int depth_r,
const std::string & name_r );
203 #endif // ZYPP_PARSER_XML_READER_H
function< bool(Reader &)> ProcessNode
bool foreachNodeAttribute(const ProcessNode &fnc_r)
xmlTextReader based interface to Reader's current node.
const Node & operator*() const
const Arch Arch_armv7hnl Arch_armv7nhl ZYPP_API
const Node * operator->() const
bool nextNodeOrAttribute()
xmlTextReader document validation.
bool foreachNode(const ProcessNode &fnc_r)
bool foreachNodeOrAttribute(const ProcessNode &fnc_r)
Easy-to use interface to the ZYPP dependency resolver.
boost::noncopyable NonCopyable
Ensure derived classes cannot be copied.
xmlTextReader based interface to iterate xml streams.