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.