shiftinstance

Name

shiftinstance -- Encapsulate a shift for Tcl scripts

Synopsis


package require logbook
set book [logbook::logbook open mylogbook]
# e.g.
set shifts [$book listshifts]
set shift [lindex $shifts 0]
foreach s [lrange $shifts 1 end] {
   $s destroy
}
...
      

$shift destroy

set name [$shift name]

set id [$shift id]

set members [$shift members]

DESCRIPTION

Shift instances are command ensembles that are generated by the logbookinstance objects (see logbookinstance). Shift instances encapsulate resources and must be destroyed using their destroy subcommand when they are no longer needed (see the SYNOPSIS for an example of that.).

SUBCOMMANDS

destroy

Destroys the shfit instance. All resources held by the object are relesed and the command is removed from the Tcl interpreter

name

Returns the name of the encapsulated shift.

id

Returns the primary key assigned to the encapsulated shift.

members

Returns person instances for all of the members of the encapsulated shift. See personinstance for information about person instances