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.