[zypp-commit] r5626 - /trunk/libzypp/zypp2/parser/susetags/RepoParser.h
Author: mlandres Date: Thu May 24 10:09:46 2007 New Revision: 5626 URL: http://svn.opensuse.org/viewcvs/zypp?rev=5626&view=rev Log: docs Modified: trunk/libzypp/zypp2/parser/susetags/RepoParser.h Modified: trunk/libzypp/zypp2/parser/susetags/RepoParser.h URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp2/parser/susetags/RepoParser.h?rev=5626&r1=5625&r2=5626&view=diff ============================================================================== --- trunk/libzypp/zypp2/parser/susetags/RepoParser.h (original) +++ trunk/libzypp/zypp2/parser/susetags/RepoParser.h Thu May 24 10:09:46 2007 @@ -37,6 +37,29 @@ // CLASS NAME : RepoParser // /** SuseTags metadata parser. + * + * Reads a \c content file to get the \ref data::Product and a \Ref RepoIndex. + * Then parses the remaining files and feeds them to a \ref data::ResolvableDataConsumer + * (typically to store them in a database). + * + * \see \ref ContentFileReader and \ref FileReaderBase + * + * \code + * Pathname dbdir( "store" ); + * Pathname reporoot( "lmd" ); + * + * cache::CacheStore store( dbdir ); + * data::RecordId catalogId = store.lookupOrAppendCatalog( Url("dir:///somewhere"), "/" ); + * + * parser::susetags::RepoParser repo( catalogId, store ); + * repo.parse( reporoot ); + * + * store.commit(); + * \endcode + * + * \todo Improve selection of Languages to parse + * \todo Improve feeding of translations into Cachestore. Add specialized consumer, for Du too. + * \todo DiskUsage filereader and parsing * \todo more doc and Exception specification */ class RepoParser : private base::NonCopyable -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org
participants (1)
-
mlandres@svn.opensuse.org