]> git.mxchange.org Git - simgear.git/commitdiff
Package: expose file size property.
authorJames Turner <zakalawe@mac.com>
Thu, 12 Jun 2014 16:58:03 +0000 (17:58 +0100)
committerJames Turner <zakalawe@mac.com>
Thu, 12 Jun 2014 17:43:27 +0000 (18:43 +0100)
simgear/package/Package.cxx
simgear/package/Package.hxx

index 76ae4f0ec971687e5fb18a1cf1bc12acf11ed488..4e01a26034b3167ce59ad4bda3d36e6a6f3175de 100644 (file)
@@ -151,6 +151,11 @@ std::string Package::name() const
     return m_props->getStringValue("name");
 }
 
+size_t Package::fileSizeBytes() const
+{
+    return m_props->getIntValue("file-size-bytes");
+}
+  
 std::string Package::description() const
 {
     return getLocalisedProp("decription");
index 034d7dd0c3c7deae756438194f86744395fe0b1e..56edabc423f152b787811062360ac88cb64a6013 100644 (file)
@@ -89,7 +89,9 @@ public:
     std::string getLocalisedProp(const std::string& aName) const;
 
     unsigned int revision() const;
-    
+  
+    size_t fileSizeBytes() const;
+  
     CatalogRef catalog() const
         { return m_catalog; }