Mailinglist Archive: zypp-commit (266 mails)

< Previous Next >
[zypp-commit] r11759 - /trunk/libzypp/zypp/sat/LookupAttrTools.h
  • From: mlandres@xxxxxxxxxxxxxxxx
  • Date: Thu, 20 Nov 2008 21:19:32 -0000
  • Message-id: <20081120211933.10BD9E02CF@xxxxxxxxxxxxxxxx>
Author: mlandres
Date: Thu Nov 20 22:19:32 2008
New Revision: 11759

URL: http://svn.opensuse.org/viewcvs/zypp?rev=11759&view=rev
Log:
Enable ArrayAttr to retieve repository attributes.

Modified:
trunk/libzypp/zypp/sat/LookupAttrTools.h

Modified: trunk/libzypp/zypp/sat/LookupAttrTools.h
URL:
http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/sat/LookupAttrTools.h?rev=11759&r1=11758&r2=11759&view=diff
==============================================================================
--- trunk/libzypp/zypp/sat/LookupAttrTools.h (original)
+++ trunk/libzypp/zypp/sat/LookupAttrTools.h Thu Nov 20 22:19:32 2008
@@ -136,6 +136,12 @@
//
/** \ref LookupAttr::transformIterator based container to retrieve list
attributes.
*
+ * You may pass \ref LookupAttr::REPO_ATTR as \ref LookupAttr::Location
argument,
+ * to lookup attributes associated with the \ref Repository as a whole
+ * (e.g. repository keywords).
+ *
+ * \see \ref LookupAttr for details.
+ *
* \code
* typedef ArrayAttr<PackageKeyword,IdString> Keywords;
* Keywords k( sat::SolvAttr::keywords );
@@ -153,12 +159,12 @@
ArrayAttr()
{}

- ArrayAttr( SolvAttr attr_r )
- : _q( attr_r )
+ ArrayAttr( SolvAttr attr_r, LookupAttr::Location loc_r =
LookupAttr::SOLV_ATTR )
+ : _q( attr_r, loc_r )
{}

- ArrayAttr( SolvAttr attr_r, Repository repo_r )
- : _q( attr_r, repo_r )
+ ArrayAttr( SolvAttr attr_r, Repository repo_r, LookupAttr::Location
loc_r = LookupAttr::SOLV_ATTR )
+ : _q( attr_r, repo_r, loc_r )
{}

ArrayAttr( SolvAttr attr_r, Solvable solv_r )
@@ -190,7 +196,7 @@
}

private:
- sat::LookupAttr _q;
+ LookupAttr _q;
};
///////////////////////////////////////////////////////////////////


--
To unsubscribe, e-mail: zypp-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages