next up previous contents
Next: Random Sources (random_source) Up: Simple Data Types and Previous: Command Input Streams (cmd_istream)

   
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.

Creation

cmd_ostream O(string 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
1998-10-02