#include <ShoreApp.h> static shrc REF(T)::new_persistent(const char *path, mode_t mode, REF(T) &returned_ref); static shrc REF(T)::new_persistent(REF(Pool) pool, REF(T) &returned_ref);
These methods create new Shore objects of type T. The first form creates a registered object whose pathname is given by path, and whose mode is given by mode (see umask(oc) for a description of how the actual mode bits are determined). The second form creates an anonymous object in the pool given by pool. In both cases, a pointer to the new object is returned in returned_ref, upon successful completion. An alternate interface to object creation is T::operator new (see new(sdl) ).