Next: Introduction, Previous: (dir), Up: (dir) [Contents][Index]
This is the redirect-stream Reference Manual, version 1.0.0, generated automatically by Declt version 3.0 "Montgomery Scott" on Tue Dec 22 14:53:36 2020 GMT+0.
• Introduction | What redirect-stream is all about | |
• Systems | The systems documentation | |
• Files | The files documentation | |
• Packages | The packages documentation | |
• Definitions | The symbols documentation | |
• Indexes | Concepts, functions, variables and data types |
This is a very simple implementation of a gray stream that redirects all stream operations it receives to another stream. This is useful in situations where you would like to change the target of operations at any point in time without being able to change the actual binding of the stream that is being operated on.
Load it with Quicklisp or ASDF
(ql:quickload :redirect-stream)
Let's create a redirect stream.
(defvar *stream* (redirect-stream:make-redirect-stream))
At this point there's no stream inside the redirect-stream, so doing anything won't result in anything useful.
(print 0 *stream*)
So let's change that.
(setf (redirect-stream:stream *stream*) *standard-output*)
(print 0 *stream*)
We can also use it for input.
(setf (redirect-stream:stream *stream*) *standard-input*)
(read-line *stream*)
And that's pretty much it, really. It just redirects everything, just as one might guess.
Next: Files, Previous: Introduction, Up: Top [Contents][Index]
The main system appears first, followed by any subsystem dependency.
• The redirect-stream system |
Nicolas Hafner <shinmera@tymoon.eu>
Nicolas Hafner <shinmera@tymoon.eu>
(:git "https://github.com/shinmera/redirect-stream.git")
zlib
Offers a stream that redirects all actions to an inner stream.
1.0.0
trivial-gray-streams
redirect-stream.asd (file)
Files are sorted by type and then listed depth-first from the systems components trees.
• Lisp files |
• The redirect-stream.asd file | ||
• The redirect-stream/redirect-stream.lisp file | ||
• The redirect-stream/documentation.lisp file |
Next: The redirect-stream/redirect-stream․lisp file, Previous: Lisp files, Up: Lisp files [Contents][Index]
redirect-stream.asd
redirect-stream (system)
Next: The redirect-stream/documentation․lisp file, Previous: The redirect-stream․asd file, Up: Lisp files [Contents][Index]
redirect-stream (system)
redirect-stream.lisp
define-redirect-method (macro)
Previous: The redirect-stream/redirect-stream․lisp file, Up: Lisp files [Contents][Index]
redirect-stream.lisp (file)
redirect-stream (system)
documentation.lisp
setdocs (macro)
Next: Definitions, Previous: Files, Up: Top [Contents][Index]
Packages are listed by definition order.
• The redirect-stream package |
redirect-stream.lisp (file)
org.shirakumo.redirect-stream
Definitions are sorted by export status, category, package, and then by lexicographic order.
• Exported definitions | ||
• Internal definitions |
Next: Internal definitions, Previous: Definitions, Up: Definitions [Contents][Index]
• Exported functions | ||
• Exported generic functions | ||
• Exported classes |
Next: Exported generic functions, Previous: Exported definitions, Up: Exported definitions [Contents][Index]
Creates a new REDIRECT-STREAM that directs all operations to STREAM.
See STREAM
See REDIRECT-STREAM
redirect-stream.lisp (file)
Next: Exported classes, Previous: Exported functions, Up: Exported definitions [Contents][Index]
Returns the stream the REDIRECT-STREAM redirects to.
SETF-able.
See REDIRECT-STREAM
(setf stream) (generic function)
automatically generated reader method
redirect-stream.lisp (file)
stream (generic function)
automatically generated writer method
redirect-stream.lisp (file)
Previous: Exported generic functions, Up: Exported definitions [Contents][Index]
A gray-stream class that redirects all stream operations to its STREAM object.
If STREAM is NIL, a stream operation will do nothing and return NIL. Otherwise the exact same operation with the exact same parameters is performed on STREAM.
See STREAM
redirect-stream.lisp (file)
:stream
stream (generic function)
(setf stream) (generic function)
Initarg | Value |
---|---|
:stream | nil |
Previous: Exported definitions, Up: Definitions [Contents][Index]
• Internal macros |
Previous: Internal definitions, Up: Internal definitions [Contents][Index]
redirect-stream.lisp (file)
documentation.lisp (file)
Previous: Definitions, Up: Top [Contents][Index]
• Concept index | ||
• Function index | ||
• Variable index | ||
• Data type index |
Next: Function index, Previous: Indexes, Up: Indexes [Contents][Index]
Jump to: | F L R |
---|
Jump to: | F L R |
---|
Next: Variable index, Previous: Concept index, Up: Indexes [Contents][Index]
Jump to: | (
D F G M S |
---|
Jump to: | (
D F G M S |
---|
Next: Data type index, Previous: Function index, Up: Indexes [Contents][Index]
Jump to: | S |
---|
Index Entry | Section | ||
---|---|---|---|
| |||
S | |||
Slot, stream : | Exported classes | ||
stream : | Exported classes | ||
|
Jump to: | S |
---|
Previous: Variable index, Up: Indexes [Contents][Index]
Jump to: | C P R S |
---|
Jump to: | C P R S |
---|