| 12 | #endif |
| 13 | |
| 14 | Fork::Fork(int n, BufferedTransformation *const *givenOutPorts) |
| 15 | : numberOfPorts(n), outPorts(n) |
| 16 | { |
| 17 | currentPort = 0; |
| 18 | |
| 19 | for (unsigned int i=0; i<numberOfPorts; i++) |
| 20 | outPorts[i].reset(givenOutPorts ? givenOutPorts[i] : new ByteQueue); |
| 21 | } |
| 22 | |
| 23 | void Fork::SelectOutPort(int portNumber) |
| 24 | { |