#include <YUMOtherParser.h>
Inheritance diagram for zypp::parser::yum::YUMOtherParser:
Public Member Functions | |
YUMOtherParser (std::istream &is, const std::string &baseUrl) | |
Constructor. | |
YUMOtherParser () | |
YUMOtherParser (YUMOtherData_Ptr &entry) | |
virtual | ~YUMOtherParser () |
Destructor. | |
Private Member Functions | |
virtual bool | isInterested (const xmlNodePtr nodePtr) |
decides if the parser is interested in the node (and subtree) of an element. | |
virtual YUMOtherData_Ptr | process (const xmlTextReaderPtr reader) |
creates a new object from the xml subtree | |
Private Attributes | |
LibXMLHelper | _helper |
converts the xml stuff to c++ stuff and filters the right namespaces | |
Arch | _zypp_architecture |
Here's an example:
for (YUMOtherParser iter(anIstream, baseUrl), iter != YUMOtherParser.end(), // or: iter() != 0, or ! iter.atEnd() ++iter) { doSomething(*iter) }
The iterator owns the pointer (i.e., caller must not delete it) until the next ++ operator is called. At this time, it will be destroyed (and a new ENTRYTYPE is created.)
If the input is fundamentally flawed so that it makes no sense to continue parsing, XMLNodeIterator will log it and consider the input as finished. You can query the exit status with errorStatus().
Definition at line 48 of file YUMOtherParser.h.
|
Constructor.
|
|
Definition at line 40 of file YUMOtherParser.cc. |
|
Definition at line 44 of file YUMOtherParser.cc. |
|
Destructor.
Definition at line 51 of file YUMOtherParser.cc. |
|
decides if the parser is interested in the node (and subtree) of an element.
Implements zypp::parser::XMLNodeIterator< YUMOtherData_Ptr >. Definition at line 60 of file YUMOtherParser.cc. References _helper, zypp::parser::LibXMLHelper::isElement(), and zypp::parser::LibXMLHelper::name(). |
|
creates a new object from the xml subtree
Implements zypp::parser::XMLNodeIterator< YUMOtherData_Ptr >. Definition at line 70 of file YUMOtherParser.cc. References _helper, _zypp_architecture, zypp::parser::LibXMLHelper::attribute(), and xml_assert. |
|
converts the xml stuff to c++ stuff and filters the right namespaces
Definition at line 84 of file YUMOtherParser.h. Referenced by isInterested(), and process(). |
|
Definition at line 85 of file YUMOtherParser.h. Referenced by process(). |