Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

YUM::YUMRepomdParser Class Reference

Parser for YUM repomd.xml files (describing the repository) Use this class as an iterator that produces, one after one, YUMRepomdDataPtr(s) for the XML package elements. Here's an example:. More...

#include <YUMRepomdParser.h>

Inheritance diagram for YUM::YUMRepomdParser:

XMLNodeIterator< YUMRepomdDataPtr > XMLNodeIteratorBase List of all members.

Public Member Functions

 YUMRepomdParser (std::istream &is, const std::string &baseUrl)
 YUMRepomdParser ()
 YUMRepomdParser (YUMRepomdDataPtr &entry)
virtual ~YUMRepomdParser ()

Private Member Functions

virtual bool isInterested (const xmlNodePtr nodePtr)
virtual YUMRepomdDataPtr process (const xmlTextReaderPtr reader)

Private Attributes

LibXMLHelper _helper

Detailed Description

Parser for YUM repomd.xml files (describing the repository) Use this class as an iterator that produces, one after one, YUMRepomdDataPtr(s) for the XML package elements. Here's an example:.

for (YUMRepomdParser 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().


Constructor & Destructor Documentation

YUM::YUMRepomdParser::YUMRepomdParser std::istream &  is,
const std::string &  baseUrl
 

YUMRepomdParser::YUMRepomdParser  ) 
 

YUMRepomdParser::YUMRepomdParser YUMRepomdDataPtr &  entry  ) 
 

YUMRepomdParser::~YUMRepomdParser  )  [virtual]
 


Member Function Documentation

bool YUMRepomdParser::isInterested const xmlNodePtr  nodePtr  )  [private, virtual]
 

Implements XMLNodeIterator< YUMRepomdDataPtr >.

YUMRepomdDataPtr YUMRepomdParser::process const xmlTextReaderPtr  reader  )  [private, virtual]
 

Implements XMLNodeIterator< YUMRepomdDataPtr >.


Member Data Documentation

LibXMLHelper YUM::YUMRepomdParser::_helper [private]
 


The documentation for this class was generated from the following files:
Generated on Mon Sep 12 21:52:15 2005 for yast2-packagemanager by  doxygen 1.4.4