Author: jkupec Date: Tue Jul 3 14:59:22 2007 New Revision: 5872 URL: http://svn.opensuse.org/viewcvs/zypp?rev=5872&view=rev Log: some comments added Modified: branches/REFACTORING-10_3/libzypp/zypp/parser/yum/FileReaderBaseImpl.h branches/REFACTORING-10_3/libzypp/zypp/parser/yum/PrimaryFileReader.cc branches/REFACTORING-10_3/libzypp/zypp/parser/yum/PrimaryFileReader.h Modified: branches/REFACTORING-10_3/libzypp/zypp/parser/yum/FileReaderBaseImpl.h URL: http://svn.opensuse.org/viewcvs/zypp/branches/REFACTORING-10_3/libzypp/zypp/parser/yum/FileReaderBaseImpl.h?rev=5872&r1=5871&r2=5872&view=diff ============================================================================== --- branches/REFACTORING-10_3/libzypp/zypp/parser/yum/FileReaderBaseImpl.h (original) +++ branches/REFACTORING-10_3/libzypp/zypp/parser/yum/FileReaderBaseImpl.h Tue Jul 3 14:59:22 2007 @@ -97,6 +97,7 @@ * * \return true if the package node or current subnode has been consumed * (no further processing is required), false otherwise. + * \throws ParseException if a serious error is encountered while parsing */ bool consumePackageNode(xml::Reader & reader_r, data::Package_Ptr & package_ptr); @@ -112,6 +113,7 @@ * Processes RPM dependency tags (rpm:entry, rpm:requires, ...). * * \return true if a dependency tag has been encountered, false otherwise. + * \throws ParseException if a serious error is encountered while parsing */ bool consumeDependency(xml::Reader & reader_r, data::Dependencies & deps_r); Modified: branches/REFACTORING-10_3/libzypp/zypp/parser/yum/PrimaryFileReader.cc URL: http://svn.opensuse.org/viewcvs/zypp/branches/REFACTORING-10_3/libzypp/zypp/parser/yum/PrimaryFileReader.cc?rev=5872&r1=5871&r2=5872&view=diff ============================================================================== --- branches/REFACTORING-10_3/libzypp/zypp/parser/yum/PrimaryFileReader.cc (original) +++ branches/REFACTORING-10_3/libzypp/zypp/parser/yum/PrimaryFileReader.cc Tue Jul 3 14:59:22 2007 @@ -53,6 +53,8 @@ * * \param the xml reader object reading the file * \return true to tell the reader to continue, false to tell it to stop + * \throws AbortRequestException if user request for aborting the parsing + * has been received through progress reporting callback. * * \note Semantics of this method's return value also differs from other * consume* methods. While this method's return value tells the the @@ -113,6 +115,7 @@ if (reader_r->nodeType() == XML_READER_TYPE_ELEMENT) { + // xpath: /metadata if (reader_r->name() == "metadata") { unsigned total_packages; @@ -122,6 +125,7 @@ return true; } + // xpath: /metdata/package (+) if (reader_r->name() == "package") { tag(tag_package); @@ -134,6 +138,7 @@ else if ( reader_r->nodeType() == XML_READER_TYPE_END_ELEMENT ) { + // xpath: /metdata/package (+) if (reader_r->name() == "package") { if (_package && _callback) @@ -146,6 +151,7 @@ return true; } + // xpath: /metdata if (reader_r->name() == "metadata") { _ticks.toMax(); Modified: branches/REFACTORING-10_3/libzypp/zypp/parser/yum/PrimaryFileReader.h URL: http://svn.opensuse.org/viewcvs/zypp/branches/REFACTORING-10_3/libzypp/zypp/parser/yum/PrimaryFileReader.h?rev=5872&r1=5871&r2=5872&view=diff ============================================================================== --- branches/REFACTORING-10_3/libzypp/zypp/parser/yum/PrimaryFileReader.h (original) +++ branches/REFACTORING-10_3/libzypp/zypp/parser/yum/PrimaryFileReader.h Tue Jul 3 14:59:22 2007 @@ -59,6 +59,8 @@ * \param primary_file the primary.xml.gz file you want to read * \param callback function to process \ref _package data. * \param progress progress reporting function + * \throws AbortRequestException if user request for aborting the parsing + * has been received through progress reporting callback. * * \see PrimaryFileReader::ProcessPackage */ -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org