RobotIO.mesa
Created Saturday, June 9, 1984 4:24 pm PDT
Last edited by Eric Nickell, July 4, 1985 10:46:05 am PDT
This interface provide the tools to read and write compiled robot images to and from the disk.
DIRECTORY
IO USING [STREAM],
RobotDefs USING [Robot],
Rope USING [ROPE];
RobotIO: CEDAR DEFINITIONS
~ {
ROPE: TYPE ~ Rope.ROPE;
WriteRobot: PROC [r: ROPE, robot: RobotDefs.Robot];
ReadRobot: PROC [r: ROPE, wDir: ROPENIL] RETURNS [robot: RobotDefs.Robot];
AssembleRobot: PROC [r: ROPE, log: IO.STREAM, onlyIfNew: BOOLTRUE, wDir: ROPENIL] RETURNS [success: BOOLEAN];
! FS.Error => couldn't find a file to assemble
Will assemble robot found in file r.robot to r.robotc
~onlyIfNew => always assemble, otherwise assemble only if r.robot newer than r.robotc
log is where to put the assembly comments
}.