FeResPost Web Site                     FeResPost Online User Manual

I.6.1 Manipulation of FeResPost standard output

Several methods of “Post” Module allow to manipulate the information and warning messages issued by FeResPost. In C++ code, the messages are saved into a C++ ostrstream object. At the end of each FeResPost method, the content of this stream is flushed into the output selected by the client. Several methods allow to control how information and warning messages are output:

The default standard output generally corresponds to clients (ruby, in this case) standard output. This selection is done when FeResPost library is loaded.

The redirection of standard output is useful when FeResPost is not run in “console” mode. Moreover, it is sometimes useful to separate the outputs of FeResPost from those of the ruby post-processing program. Two methods allow adding content in the selected output stream: