|
libzypp 17.38.3
|
xmlTextReader based interface to iterate xml streams. More...
#include <zypp/parser/xml/Reader.h>

Public Types | |
| using | ProcessNode = function<bool (Reader &)> |
Public Member Functions | |
| Reader (const InputStream &stream_r, const Validate &validate_r=Validate::none()) | |
| Ctor. | |
| ~Reader () | |
| Dtor. | |
| XmlString | nodeText () |
| If the current node is not empty, advances the reader to the next node, and returns the value. | |
| bool | nextNode () |
| bool | nextNodeAttribute () |
| bool | nextNodeOrAttribute () |
| bool | atEnd () const |
| const Node & | operator* () const |
| const Node * | operator-> () const |
| bool | foreachNode (const ProcessNode &fnc_r) |
| bool | foreachNodeAttribute (const ProcessNode &fnc_r) |
| bool | foreachNodeOrAttribute (const 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.
| using zypp::xml::Reader::ProcessNode = function<bool (Reader &)> |
| zypp::xml::Reader::Reader | ( | const InputStream & | stream_r, |
| const Validate & | validate_r = Validate::none() ) |
|
inline |
|
inline |
|
inline |
|
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 |
|
private |
|
private |