]> git.mxchange.org Git - simgear.git/commitdiff
Pkg: qualified ID accessor.
authorJames Turner <zakalawe@mac.com>
Thu, 12 Jun 2014 07:50:09 +0000 (08:50 +0100)
committerJames Turner <zakalawe@mac.com>
Thu, 12 Jun 2014 07:50:09 +0000 (08:50 +0100)
simgear/package/Package.cxx
simgear/package/Package.hxx

index cb6549847c35d8b10b37e2ea83083a394b74c28a..8e697c733dcc14ec3e8dce04f0f0016dbbf04d70 100644 (file)
@@ -135,6 +135,11 @@ std::string Package::id() const
     return m_props->getStringValue("id");
 }
 
+std::string Package::qualifiedId() const
+{
+    return m_catalog->id() + "." + id();
+}
+
 std::string Package::md5() const
 {
     return m_props->getStringValue("md5");
index 43934ddf14af4784e67b2967843a790818fabe64..034d7dd0c3c7deae756438194f86744395fe0b1e 100644 (file)
@@ -59,6 +59,11 @@ public:
     bool isInstalled() const;
     
     std::string id() const;
+
+    /**
+     * Fully-qualified ID, including our catalog'd ID
+     */
+    std::string qualifiedId() const;
     
     /**
      * human-readable name - note this is probably not localised,