CREATE(OC)

Shore Programmer's Manual - 3 November 94

NAME

create \- create Shore object

SYNOPSIS

#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);

DESCRIPTION

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) ).

VERSION

This manual page applies to Version 0.1 of theShore software.

SPONSORSHIP

The Shore project is sponsored by the Advanced Research Project Agency, ARPA order number 018 (formerly 8230), monitored by the U.S. Army Research Laboratory under contract DAAB07-91-C-Q518.

COPYRIGHT

Copyright (c) 1994 Computer Sciences Department, University of Wisconsin -- Madison. All Rights Reserved.

SEE ALSO

ref(oc) , new(sdl) , umask(oc) .