]> git.mxchange.org Git - simgear.git/commitdiff
Catalog: add method to get all packages in a catalog.
authorThomas Geymayer <tomgey@gmail.com>
Wed, 4 Jun 2014 15:47:29 +0000 (17:47 +0200)
committerThomas Geymayer <tomgey@gmail.com>
Wed, 4 Jun 2014 15:47:29 +0000 (17:47 +0200)
simgear/package/Catalog.cxx
simgear/package/Catalog.hxx

index 982b253290b186c48e6f5a6ca389e5fedbe7fdf3..6bc23efe5068b7785a9c3853062b8628f6f08d37 100644 (file)
@@ -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
 {
index 3f98fffb9aa215127d3f920599ac85ffb2806c01..e38618193df250a7c47c951d164e588b38d6c382 100644 (file)
@@ -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.