Pau Espin Pedrol | 5badb21 | 2024-05-15 14:36:53 +0200 | [diff] [blame^] | 1 | module PIPEasp_Templates { |
| 2 | |
| 3 | import from PIPEasp_PortType all; |
| 4 | import from PIPEasp_Types all; |
| 5 | |
| 6 | template (value) ASP_PExecuteBackground ts_ExecBg(charstring cmd) := { |
| 7 | command := cmd |
| 8 | } |
| 9 | |
| 10 | template (present) ASP_PStdout tr_Stdout(template (present) charstring line) := { |
| 11 | stdout := line |
| 12 | } |
| 13 | |
| 14 | template (present) ASP_PStderr tr_Stderr(template (present) charstring line) := { |
| 15 | stderr := line |
| 16 | } |
| 17 | |
| 18 | template (value) ASP_PStdin ts_Stdin(template (value) charstring line) := { |
| 19 | stdin :=line |
| 20 | } |
| 21 | |
| 22 | /* Ignore output from stderr: */ |
| 23 | altstep as_ignore_stderr(PIPEasp_PT pt) { |
| 24 | [] pt.receive(tr_Stderr(?)) { repeat; } |
| 25 | } |
| 26 | |
| 27 | } |