next up previous contents index
Next: Command Output Streams ( Up: Simple Data Types and Previous: String Output Streams (   Contents   Index


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.

#include < LEDA/stream.h >

Creation

cmd_istream I(char* 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
2000-02-09