next up previous contents
Next: Command Output Streams (cmd_ostream) Up: Simple Data Types and Previous: String Output Streams (string_ostream)

   
Command Input Streams (cmd_istream)

Definition

An instance I of the data type cmd_istream is an C++istream connected to the output of a shell command cmd, i.e., all input operations or operators applied to I read from the standard output of command cmd.

Creation

cmd_istream I(string cmd); creates an instance I of type cmd_istream connected to the output of command cmd.

   

Operations

All operations and operators (>>) defined for C++istreams can be applied to command input streams as well.



LEDA research project
1998-10-02