File: DBNames.mesa
Implemented By: DBNamesImpl
Last edited by
Cattell, July 5, 1983 4:48 pm
Donahue, March 14, 1986 1:38:51 pm PST
Willie-sue, February 22, 1983 3:47 pm
DIRECTORY
DBDefs USING [Entity, Segment],
Rope USING [ROPE];
DBNames: CEDAR DEFINITIONS =
BEGIN OPEN Rope, DBDefs;
EntityToName: PROC[e: Entity, seg: Segment] RETURNS[name: ROPE];
Includes in the name the file corresponding to the database segment, so that the name produced uniquely indetifiers the entity (no confusion about which Walnut segment it might reside in, for instance)
MakeName: PROC[seg: Segment, domain, eName: ROPE] RETURNS[name: ROPE];
MakeName is useful when the entity might not exist yet
NameToEntity: PROC[name: ROPE, create: BOOLFALSE] RETURNS[e: Entity];
May return NIL if name cannot be mapped onto any open segment
SegmentOf: PROC[name: ROPE] RETURNS[segment: Segment, filePath: ROPE];
DecomposeName: PROC[name: ROPE] RETURNS[segment, domain, entity: ROPE]
END. . .