|
libzypp
15.22.2
|
xmlTextReader based interface to iterate xml streams. More...
#include <Reader.h>

Public Types | |
| typedef function< bool(Reader &)> | ProcessNode |
Public Member Functions | |
| Reader (const InputStream &stream_r, const Validate &validate_r=Validate::none()) | |
| Ctor. More... | |
| ~Reader () | |
| Dtor. More... | |
| XmlString | nodeText () |
| If the curent node is not empty, advances the reader to the next node, and returns the value. More... | |
| bool | nextNode () |
| bool | nextNodeAttribute () |
| bool | nextNodeOrAttribute () |
| bool | atEnd () const |
| const Node & | operator* () const |
| const Node * | operator-> () const |
| bool | foreachNode (ProcessNode fnc_r) |
| bool | foreachNodeAttribute (ProcessNode fnc_r) |
| bool | foreachNodeOrAttribute (ProcessNode fnc_r) |
| bool | seekToNode (int depth_r, const std::string &name_r) |
| bool | seekToEndNode (int depth_r, const std::string &name_r) |
Private Member Functions | |
| void | close () |
Private Attributes | |
| InputStream | _stream |
| xmlTextReaderPtr | _reader |
| Node | _node |
xmlTextReader based interface to iterate xml streams.
| typedef function<bool( Reader & )> zypp::xml::Reader::ProcessNode |
| zypp::xml::Reader::Reader | ( | const InputStream & | stream_r, |
| const Validate & | validate_r = Validate::none() |
||
| ) |
| XmlString zypp::xml::Reader::nodeText | ( | ) |
|
inline |
|
inline |
|
inline |
| bool zypp::xml::Reader::seekToNode | ( | int | depth_r, |
| const std::string & | name_r | ||
| ) |
| bool zypp::xml::Reader::seekToEndNode | ( | int | depth_r, |
| const std::string & | name_r | ||
| ) |
|
private |