diff --git a/simgear/package/Catalog.cxx b/simgear/package/Catalog.cxx index 982b2532..6bc23efe 100644 --- a/simgear/package/Catalog.cxx +++ b/simgear/package/Catalog.cxx @@ -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 { diff --git a/simgear/package/Catalog.hxx b/simgear/package/Catalog.hxx index 3f98fffb..e3861819 100644 --- a/simgear/package/Catalog.hxx +++ b/simgear/package/Catalog.hxx @@ -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.