DIRECTORY BasicTime USING [nullGMT, GMT], IO USING [STREAM], Rope USING [ROPE]; ArchivistBTreePublic: CEDAR DEFINITIONS ~ BEGIN ROPE: TYPE = Rope.ROPE; STREAM: TYPE = IO.STREAM; GMT: TYPE = BasicTime.GMT; IllegalPattern: ERROR [pattern: ROPE]; BTreeTrouble: ERROR [explanation: ROPE]; Handle: TYPE = REF HandleRecord; HandleRecord: TYPE; FileInfoList: TYPE ~ REF FileInfoListRecord; FileInfoListRecord: TYPE ~ RECORD [ next: FileInfoList _ NIL, fileName: ROPE _ NIL, created: BasicTime.GMT _ BasicTime.nullGMT, volumes: ROPE _ NIL, state: FileState _ complete ]; FileState: TYPE ~ {none, pending, backup, complete}; OpenBTree: PROC [msg: STREAM_ NIL] RETURNS [Handle]; ReadFileInfo: PROC [h: Handle, fileName: ROPE, created: GMT] RETURNS [fileInfo: ROPE]; EnumerateRecord: PROC [h: Handle, pattern: ROPE, created: GMT _ BasicTime.nullGMT] RETURNS [FileInfoList]; CloseBTree: PROC [h: Handle]; END. κArchivistBTreePublic.mesa Copyright c 1985 by Xerox Corporation. All rights reserved. Tim Diebert: August 1, 1985 2:28:20 pm PDT Called if no msg STREAM is available. Opens a handle on the currect Archivist BTree living on the server. The name is obtained from the user profile entry Archivist.BTreeServerName which defaults to [Indigo]BTrees>Archivist.btree. Provides file data for specified file. Returns NIL if file specified is not in the tree. Returns a list of all files matching the pattern. If created is specified, it is used as part of the pattern. If pattern does not include a terminal wild card, one is provided for (since the version is part of the stored file names. Closes the btree and releases the file. ΚŽ˜™Icodešœ Οmœ1™