![]() | ![]() | ![]() | make-journal-streamer | ![]() |
|
| pathname
&key
| [Function] |
Purpose
Create a journal streamer to record to a file changes made
to unit instances (and space instances).
Package :gbbopen
Module :streaming
Arguments and values
| pathname | A pathname designator | |
| external-format | An external-file-format designator (default is
:default | |
| package | A package designator indicating the package to be used
when writing the journal and when loading the journal file (default is
:common-lisp | |
| read-default-float-format | One of the atomic type specifiers
short-floatsingle-floatdouble-floatlong-floatsingle-float | |
| value | An object to be saved with the journal and returned when the
journal file is loaded (default is nil)
| |
| journal-streamer | A journal streamer |
Returns
The created journal streamer.
Description
If pathname does not specify a file type, the type
jnl is added to it. Then, (user-homedir-pathname)
The size of the journal file can be reduced by specifying a
A
See also
load-journal
omitted-slots-for-saving/sending
stream-instance
save-blackboard-repository
with-saving/sending-block
Example
Load the :streaming module followed by the GBBopen Tutorial Example
application (without running it). Then write a journal file recording what
occurred when taking a walk:
> :streaming
...
> :tutorial-example :noautorun
...
> (defparameter *streamer*
(make-journal-streamer "tutorial" :package ':tutorial))
*streamer*
> *streamer*
#<journal-streamer "<homedir>/tutorial.jnl">
> (add-mirroring *streamer* 'standard-space-instance)
nil
> (add-mirroring *streamer* 'path)
nil
> (add-mirroring *streamer* 'location)
nil
> (take-a-walk)
;; Control shell 1 started
...
;; Explicit :stop issued by KS print-walk-ks
;; Control shell 1 exited: 41 cycles completed
;; Run time: 0.01 seconds
;; Elapsed time: 0 seconds
:stop
>
The GBBopen Project
![]() | ![]() | ![]() | make-journal-streamer | ![]() |