DIRECTORY YggDID USING[DID], YggEnvironment USING[DID, LockMode, TransID], YggInternal USING[Document, OpenDoc]; YggOpenDoc: CEDAR DEFINITIONS = BEGIN OpenDoc: TYPE = YggInternal.OpenDoc; GetOpenDoc: PROCEDURE [trans: YggEnvironment.TransID, did: YggDID.DID] RETURNS [openDoc: OpenDoc]; FlushTransState: PROCEDURE [trans: YggEnvironment.TransID]; GetDocHandle: PROCEDURE [openDoc: OpenDoc] RETURNS [doc: YggInternal.Document]; GetTransHandle: PROCEDURE [openDoc: OpenDoc] RETURNS [trans: YggEnvironment.TransID]; GetDID: PROCEDURE [openDoc: OpenDoc] RETURNS [did: YggEnvironment.DID]; GetLockMode: PROCEDURE [openDoc: OpenDoc] RETURNS [lock: YggEnvironment.LockMode]; SetLockMode: PROCEDURE [openDoc: OpenDoc, lock: YggEnvironment.LockMode]; GetNextHandleForTrans: PROCEDURE [trans: YggEnvironment.TransID, lastOpenDoc: OpenDoc _ NIL] RETURNS [nextOpenDoc: OpenDoc]; END. >YggOpenDoc.mesa Copyright Σ 1988 by Xerox Corporation. All rights reserved. Last edited by Bob Hagmann July 14, 1988 9:34:40 am PDT errors defined in this interface: none. Finds or creates an openDoc for the supplied trans and DID, and increments use count on the returned handle. errors defined in this interface: none. When this is called, it is a fatal error if any handle in this transaction's document list has useCount # 0 or delta version = 0. Otherwise, DIDMap.Unregister is called for each handle. Access to immutable attributes. errors defined in this interface: none. errors defined in this interface: none. errors defined in this interface: none. Access to read/write attributes. errors defined in this interface: none. errors defined in this interface: none. Enumeration. errors defined in this interface: none. handle = NIL starts a new enumeration, and nextHandle = NIL is returned when the enumeration is exhausted. The FileInstance list is assumed to not be being modified during this enumeration. When handle is non-NIL, not finding it is a fatal error. Κκ˜šœ™Icodešœ<™<—šœ™K™(—J˜J˜šΟk ˜ Jšœœ˜Jšœœ˜-šœ œ˜%J˜J˜——Jšœ œ œ˜J˜Jš˜J˜J˜Jšœ œ˜$J˜J˜JšΟn œ œ2œ˜bJšœ'™'Jšœl™lJ˜J˜Jšžœ œ!˜;Jšœ'™'JšœΊ™ΊJ˜J˜J˜Jšœ™J˜Jšž œ œœ˜OJšœ'™'J˜Jšžœ œœ!˜UJšœ(™(J˜J˜Jšžœ œœ˜GJšœ'™'J˜J˜J˜Jšœ ™ J˜J˜Jšž œ œœ!˜RJšœ(™(J˜Jšž œ œ3˜IJšœ(™(J˜J˜J˜Jšœ ™ J˜šžœ œ7˜WJšœœ˜$—Jšœ'™'JšœP™PJšœK™KJšœ[™[J˜J˜J˜J˜Jšœ˜—…—Š ²