I have a graphics program that uses a list<string> to store component names for the various scenes.
When I want put a new graphic up I check an XML file to see if any current scenes that are currently being displayed need to be removed. This works fine but when the other scenes are put up a (derived) button is set to a particular state.
When I remove the scene I need to be able to also reset the button state.
The best way would be to store the button's name in the XML file and use a call to get a reference to the object so I can use this to reset it.
Failing this I could create a function to reset the button state so would like to get a reference to this function from the name stored in the XML file.
Does anyone know the call to get the object reference or failing that the function reference from a string (name)