Catalog: add method to get all packages in a catalog.

This commit is contained in:
Thomas Geymayer 2014-06-04 17:47:29 +02:00
parent e5acc3f048
commit 03cafe4547
2 changed files with 12 additions and 0 deletions

View File

@ -170,6 +170,12 @@ CatalogRef Catalog::createFromPath(Root* aRoot, const SGPath& aPath)
return c; return c;
} }
PackageList const&
Catalog::packages() const
{
return m_packages;
}
PackageList PackageList
Catalog::packagesMatching(const SGPropertyNode* aFilter) const Catalog::packagesMatching(const SGPropertyNode* aFilter) const
{ {

View File

@ -67,6 +67,12 @@ public:
* perform a refresh of the catalog contents * perform a refresh of the catalog contents
*/ */
void refresh(); void refresh();
/**
* Get all packages in this catalog.
*/
PackageList const& packages() const;
/** /**
* retrieve packages in this catalog matching a filter. * retrieve packages in this catalog matching a filter.
* filter consists of required / minimum values, AND-ed together. * filter consists of required / minimum values, AND-ed together.