next up previous contents index
Next: Random Sources ( random_source Up: Simple Data Types and Previous: Command Input Streams (   Contents   Index


Command Output Streams ( cmd_ostream )

Definition

An instance O of the data type cmd$ \_$ostream is an C++ostream connected to the input of a shell command cmd, i.e., all output operations or operators applied to O write into the standard input of command cmd.

#include < LEDA/stream.h >

Creation

cmd_ostream O(char* cmd) creates an instance O of type cmd_ostream connected to the input of command cmd.

Operations

All operations and operators (< <) defined for C++ostreams can be applied to command output streams as well.



LEDA research project
2000-02-09