]> Dogcows Code - chaz/yoink/blobdiff - src/moof/resource.hh
converted image management to resource handles
[chaz/yoink] / src / moof / resource.hh
index f8fd4f6327ee9b18ad47b6e0360e0c25115a5d1d..5f1a71ab41e366596ef890f26806fd9f4d097173 100644 (file)
@@ -285,6 +285,9 @@ public:
        resource_handle(resource_ptr ptr) :
                resource_(ptr) {}
 
+       explicit resource_handle(const std::string& path) :
+               resource_(resource::load(path)) {}
+
 
        /**
         * Get whether or not the handle is dereferenceable to the type of this
This page took 0.0172600000000001 seconds and 4 git commands to generate.