Next: , Previous: Playing multiple sound files at once, Up: Top


4 Look at your network

Problem

You are having trouble figuring out what is going wrong in your network and you want to look at your network to find out what is going wrong

Solution

Use the stream redirection operator with cout

Discussion

It's really simple to output your whole network, you just go:

     MarSystemManager mng;
     MarSystem* net = mng.create("Series", "net");
     
     cout << *net;

All of the components of the network, and the state of all their controls will be written to the standard output.

If the format is too hard to understand, try using put_html:

     net->put_html(cout);

Which has some nifty javascript to hide and show different parts of your network.