Dear Cint experts,
It came into my mind to use Cint to realise a steering mechanism (I don’t want to write a class to steer something as it it suggested in theROOT talk.): A script where variables and objects are defined is loaded and evaluated using Cint API functions. Please have a look at the attached packed tar-file where you can find an example showing how I’m doing this. I make use of the API function G__what_type because it is very useful for this purpose. In the documentation this function is called a debug function. So I wonder if this function is save and if you recommend to use it this way. Perhaps one can improve this function to make it save (Is enough memory reserved for objects I want to steer?). Realising a steering mechanism using Cint has got a lot of advantages: it is easy to code, it has got a small overhead, one can steer any object,… So I really would like to use Cint this way but only if it is save on long terms.
What is your opinion on that? Perhaps you can think of a better solution (The steering script/file should be as simple as in my solution and the same functionality should be provided.)?
Greetings and many thanks in advance,
Martin
Steering.tar.gz (2.79 KB)