Go to the documentation of this file.
42 bool consumeNode(
Reader & reader_r );
48 bool WebpinResultFileReader::Impl::consumeNode(
Reader & reader_r)
50 if ( reader_r->
nodeType() == XML_READER_TYPE_ELEMENT )
53 if ( reader_r->
name() ==
"packages" )
59 if ( reader_r->
name() ==
"package" )
63 if ( reader_r->
name() ==
"name" )
67 if ( reader_r->
name() ==
"version" )
71 if ( reader_r->
name() ==
"summary" )
75 if ( reader_r->
name() ==
"repoURL" )
79 if ( reader_r->
name() ==
"checksum" )
82 if ( reader_r->
name() ==
"distro" )
87 else if ( reader_r->
nodeType() == XML_READER_TYPE_END_ELEMENT )
90 if ( reader_r->
name() ==
"package" )
100 WebpinResultFileReader::Impl::Impl(
const Pathname &result_file,
104 Reader reader( result_file );
105 MIL <<
"Reading " << result_file << endl;
xmlTextReader based interface to iterate xml streams.
function< bool(const zypp::ws::WebpinResult &)> ProcessWebpinResult
Callback definition.
std::string asString() const
Explicit conversion to std::string.
const ProcessCredentials & _callback
std::ostream & operator<<(std::ostream &str, const WebpinResultFileReader &obj)
WebpinResultFileReader(const Pathname &result_file, const ProcessWebpinResult &callback)
Constructor.
shared_ptr< WebpinResult > _result
Edition represents [epoch:]version[-release]
ZYppCommitResult & _result
bool foreachNode(ProcessNode fnc_r)
Read packages and repository search result data from from webpin web search results.
static CheckSum sha1(const std::string &checksum)
~WebpinResultFileReader()
Dtor.
NodeType nodeType() const
Get the node type of the current node.
Represents a result from http://api.opensuse-community.org/searchservice/Search web service.
XmlString name() const
The qualified name of the node, equal to Prefix :LocalName.
Easy-to use interface to the ZYPP dependency resolver.
RW_pointer< Impl, rw_pointer::Scoped< Impl > > _pimpl
bool consumeNode(Reader &reader_r)
Callback provided to the XML parser.
XmlString nodeText()
If the current node is not empty, advances the reader to the next node, and returns the value.
String related utilities and Regular expression matching.
ProcessWebpinResult _callback