X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2Fmoof%2Fresource.hh;fp=src%2Fmoof%2Fresource.hh;h=5f1a71ab41e366596ef890f26806fd9f4d097173;hp=f8fd4f6327ee9b18ad47b6e0360e0c25115a5d1d;hb=382626aad0a683ed8642a6a807eea743db45f7f8;hpb=1da520638918096276158ecdfaeebc14a3d70be7 diff --git a/src/moof/resource.hh b/src/moof/resource.hh index f8fd4f6..5f1a71a 100644 --- a/src/moof/resource.hh +++ b/src/moof/resource.hh @@ -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