Maybe you didn’t catch it...
… but we put the polymorphism of the Eventiterator class to work here:
new fileEventiterator (argv[1], status);
Eventiterator *it = new testEventiterator();
We remember that a pointer to a parent class can point to an object of any of its child classes. We can also get a ddEventiterator, which reads from the DD pool.
Eventiterator *it = new ddEventiterator(“ONLINE”,status);
The testEventiterator is nice because you can easily get event objects with known properties for testing. The Packet 1003 gives you values with some gaussian-like distribution.