zypp::parser::plaindir::RepoParser::Impl Class Reference

RepoParser implementation. More...

List of all members.

Public Member Functions

 Impl (const data::RecordId &repositoryId_r, data::ResolvableDataConsumer &consumer_r, const ProgressData::ReceiverFnc &fnc_r)
int extract_packages_from_directory (const Pathname &path, bool recursive)
void parse (const Pathname &reporoot_r)
 Main entry to parser.

Private Attributes

data::RecordId _repositoryId
data::ResolvableDataConsumer_consumer
ProgressData _ticks


Detailed Description

RepoParser implementation.

Todo:
Clean data on exeption.

Definition at line 156 of file RepoParser.cc.


Constructor & Destructor Documentation

zypp::parser::plaindir::RepoParser::Impl::Impl ( const data::RecordId repositoryId_r,
data::ResolvableDataConsumer consumer_r,
const ProgressData::ReceiverFnc fnc_r 
) [inline]

Definition at line 159 of file RepoParser.cc.

References _ticks, and zypp::ProgressData::sendTo().


Member Function Documentation

int zypp::parser::plaindir::RepoParser::Impl::extract_packages_from_directory ( const Pathname &  path,
bool  recursive 
)

Definition at line 197 of file RepoParser.cc.

References _consumer, _repositoryId, zypp::data::ResolvableDataConsumer::consumePackage(), DBG, ERR, and zypp::filesystem::readdir().

Referenced by parse().

void zypp::parser::plaindir::RepoParser::Impl::parse ( const Pathname &  reporoot_r  ) 

Main entry to parser.

Definition at line 187 of file RepoParser.cc.

References _ticks, extract_packages_from_directory(), zypp::ProgressData::toMax(), and ZYPP_THROW.


Member Data Documentation

data::RecordId zypp::parser::plaindir::RepoParser::Impl::_repositoryId [private]

Definition at line 174 of file RepoParser.cc.

Referenced by extract_packages_from_directory().

data::ResolvableDataConsumer& zypp::parser::plaindir::RepoParser::Impl::_consumer [private]

Definition at line 175 of file RepoParser.cc.

Referenced by extract_packages_from_directory().

ProgressData zypp::parser::plaindir::RepoParser::Impl::_ticks [private]

Definition at line 176 of file RepoParser.cc.

Referenced by Impl(), and parse().


The documentation for this class was generated from the following file:
Generated on Tue Sep 25 19:23:22 2007 for libzypp by  doxygen 1.5.3