GET_TYPE(OC)

Shore Programmer's Manual - 3 November 94

NAME

get_type \- get type object

SYNOPSIS

#include <ShoreApp.h>
shrc REF(T)::get_type(rType *&type) const;
shrc REF(T)::get_type(LOID &type_loid) const;

DESCRIPTION

The first form of get_type returns a pointer to the given object's C++ type object. The second form returns the logical oid of the object's type object. If the ref is nil, then the first form will return 0, and the second will return the nil LOID (LOID::null). If the ref is invalid, then an error will result.

Get_type obtains a SH-mode (share-mode) lock on the object.

BUGS

In the current Shore release, objects whose type is not compiled into the application by the language binding (see sdlcxx(sdl) ) have no C++ type object. If the first form of this method is invoked on a ref pointing to such an object, then an error will result.

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

stat(oc) , ostat(oc) .