TABLE OF CONTENTS


writefilter

NAME

::guib::moduleObj::writefilter -- the "writefilter" GUIB keyword

USAGE

writefilter cmd

DESCRIPTION

-- GUIB keyword !!!

    Keyword "writefilter" is used for telling the GUIB that when an

output is written, it should post-process by the proc specified by "writefilter" keyword, before writting to a file or stdout. A typical usage of writefilter keyword is in situations where GUIB cannot handle well the input-file, and we need some pre-processing of the input by "readfilter" proc. In such a case also the "writefilter" is used for post-processing the outout.

The writefilter "cmd" proc should be of the following form:

proc myWriteFilter {moduleObj outputContent} {

    ... code here ...
    return $myOutputContent

}

Where "moduleObj" is object-name of the moduleObj, and "outputContent" variable holds the output. The proc MUST return the content of the processed output.

RETURN VALUE

Returns the "cmd".

SOURCE

body ::guib::moduleObj::writefilter {cmd}    { set writeFilter $cmd }