#include <ShoreApp.h>
static shrc Ref<T>::lookup(const char *path, REF(T) &returned_ref);
{
const char *filename = argv[3];
Ref<myInterfaceType> obj;
Ref<myInterfaceType>::lookup(filename, obj);
if(obj) ...
// or... using the SH_DO macros
SH_DO(Ref<myInterfaceType>::lookup(filename,obj));
}
Lookup returns a ref to the object referenced by path and stores the ref into returned_ref upon successful completion. Lookup checks the type of the referenced object, and verifies that it is actually of type T or one of its subtypes. If the object is not of an appropriate type, the effect is undefined.
Lookup must be called in a transaction.