Last edited by
Cattell, July 5, 1983 4:48 pm
Donahue, July 13, 1984 5:38:04 pm PDT
Willie-sue, February 22, 1983 3:47 pm
DBNames:
CEDAR
DEFINITIONS =
BEGIN OPEN Rope, DB;
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: DB.Segment, domain, eName: ROPE] RETURNS[name: ROPE];
MakeName is useful when the entity might not exist yet
NameToEntity: PROC[name: ROPE, create: BOOL ← FALSE] 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. . .