Communicating between classes in Wonderland
I have two seperate modules (both derived from the Whiteboard module) which I need to communicate with each other. I have a bunch of seperate instances of one module sending SVG documents to a static vector in another module.
I essentially want all the whiteboards in the world to send their SVG data to a few 'display boards' when the user clicks a specially created 'save' button, and for the whiteboard to load all SVG documents in a static vector when they click a specially made 'Load' button on the 'display board'.
My problem is how to send this SVG document from one whiteboard instance to the static vector in the 'display board' module, from button click on the client to the server instance on the display board. How do I tell the server side component of a whiteboard instance to send the SVG document, and how would I add this SVG document to the display board class's static vector?
Thanks for your help, it is very much appreciated! Totally stuck right now!