You are welcome! Alternatively, you may re-consider "custom" serialisation. Whenever you change the list of parameters, old parameters serialized in a file become invalid. When you reach a certain number of parameters, it becomes a lot of hassle to manually enter values of all parameters again. With a custom serialization method you could replace missing parameters with default values... and possibly even hilight parameters that had to be assigned default values in the GUI.
note that tradelink has all this stuff (gui popups plus serialization and restore of properties), plus source code so feel free to look for implementation or use open source product.
Don't overthink the problem. OP wants to be able to change variable (parameter) values without recompiling and add parameters with a minimum of hassle. The usual progression: console app with hardcoded parameters console app reading stdin/cin console app reading a file with notepad sharing the file console app reading an XML file with editor sharing the file ... fancy Windows app with plugins that use reflection In one hour, you can modify your code to accept inputs from the keyboard and redirect the input to come from a file. That should last you many years. cin >> param1 c:> myapp < c:\somefile.txt
I believe reflection is a pretty standard technique for C# application (I think you can do the same in Java) these days.
I believe reflrection is a standard technique for C# programs these days, see attached screenshot (I think you can do the same in Java).
I appreciate that we have some vendor support here: TradeLink, OpenQuant, but you guys need to read the post.
I think what we suggest is to port the code to C++.NET (use Mono if you want to run it on Linux or Apple. I've checked Mono again recently and it seems like they are doing well with Novell support) and use .NET reflection to be able to access parameters on the fly. OpenQuant (and other trading programs like NT, RE, TL) screenshot just shows what you can get in the end. Cheers, Anton
umm... sorry to take a thread off path.. I might not be the only one with the same question though. If anybody wants to reply you have my heartfelt thanks... What would be the best venue to learn programming to the point where I could understand the thread? To where I could write software like the OP is doing? I write scripts in the various forms of C and have done Easy Language, easy enough to self learn but I'm stuck now like a Blues Guitar guy that can produce a song or two but doesn't read music...