PrinterNames.mesa
Copyright Ó 1985, 1986, 1987 by Xerox Corporation. All rights reserved.
Tim Diebert: March 12, 1987 9:35:39 am PST
DIRECTORY
Rope USING [ROPE];
PrinterNames: CEDAR DEFINITIONS
= BEGIN
ROPE: TYPE ~ Rope.ROPE;
DefaultNames: TYPE = REF DefaultNamesRep;
DefaultNamesRep: TYPE = RECORD [
printerHost: ROPE, -- host name, including brackets, as in "[Printer]"
fontHost: ROPE, -- host name for users, including brackets, as in "[Fonts]"
currentSystem: ROPE, -- system root directory, including host, as in "[Printer]<CedarPS>"
currentFont: ROPE, -- font root directory, including host, as in "[Fonts]<CedarPS>"
printerType: ROPE-- printer type as in "Raven"
];
Get: PROC RETURNS [DefaultNames];
Gets the current default names.
Set: PROC [new: DefaultNames];
No error checking is performed, so the caller is presumed to be both honest and careful.
If new = NIL, the defaults are rest to the initial state.
END.
Russ Atkinson (RRA) February 4, 1985 2:10:03 pm PST
added registry component to DefaultNamesRep