Catalog: add method to get all packages in a catalog.
This commit is contained in:
parent
e5acc3f048
commit
03cafe4547
@ -170,6 +170,12 @@ CatalogRef Catalog::createFromPath(Root* aRoot, const SGPath& aPath)
|
||||
return c;
|
||||
}
|
||||
|
||||
PackageList const&
|
||||
Catalog::packages() const
|
||||
{
|
||||
return m_packages;
|
||||
}
|
||||
|
||||
PackageList
|
||||
Catalog::packagesMatching(const SGPropertyNode* aFilter) const
|
||||
{
|
||||
|
@ -67,6 +67,12 @@ public:
|
||||
* perform a refresh of the catalog contents
|
||||
*/
|
||||
void refresh();
|
||||
|
||||
/**
|
||||
* Get all packages in this catalog.
|
||||
*/
|
||||
PackageList const& packages() const;
|
||||
|
||||
/**
|
||||
* retrieve packages in this catalog matching a filter.
|
||||
* filter consists of required / minimum values, AND-ed together.
|
||||
|
Loading…
Reference in New Issue
Block a user