1tcl::transform::observe(Rne)flected/virtual channel supptocrlt::transform::observe(n)
2
3
4
5______________________________________________________________________________
6

NAME

8       tcl::transform::observe - Observer transformation, stream copy
9

SYNOPSIS

11       package require Tcl  8.6
12
13       package require tcl::transform::core  ?1?
14
15       package require tcl::transform::observe  ?1?
16
17       ::tcl::transform::observe chan logw logr
18
19______________________________________________________________________________
20

DESCRIPTION

22       The  tcl::transform::observer  package  provides  a  command creating a
23       channel transformation which passes the read and written bytes  through
24       unchanged  (like tcl::transform::identity), but additionally copies the
25       data it has seen for each direction into  channels  specified  at  con‐
26       struction time.
27
28       Related  transformations  in  this  module are tcl::transform::adler32,
29       tcl::transform::counter,   tcl::transform::crc32,    and    tcl::trans‐
30       form::identity.
31
32       The  internal  TclOO class implementing the transform handler is a sub-
33       class of the tcl::transform::core framework.
34

API

36       ::tcl::transform::observe chan logw logr
37              This command creates an observer transformation on  top  of  the
38              channel  chan  and  returns its handle. The channel handles logr
39              and logw are there the data is copied to.
40

BUGS, IDEAS, FEEDBACK

42       This document, and the package it describes, will  undoubtedly  contain
43       bugs  and other problems.  Please report such in the category virtchan‐
44       nel  of  the  Tcllib  Trackers  [http://core.tcl.tk/tcllib/reportlist].
45       Please  also  report any ideas for enhancements you may have for either
46       package and/or documentation.
47
48       When proposing code changes, please provide unified diffs, i.e the out‐
49       put of diff -u.
50
51       Note  further  that  attachments  are  strongly  preferred over inlined
52       patches. Attachments can be made by going  to  the  Edit  form  of  the
53       ticket  immediately  after  its  creation, and then using the left-most
54       button in the secondary navigation bar.
55

KEYWORDS

57       channel transformation, observer, reflected channel, stream  copy,  tip
58       230, transformation, virtual channel
59

CATEGORY

61       Channels
62
64       Copyright (c) 2009 Andreas Kupries <andreas_kupries@users.sourceforge.net>
65
66
67
68
69tcllib                                 1            tcl::transform::observe(n)
Impressum