Hello all
I am looking for someone to point me in the right direction for this c++ project I'm working on.
I have a massive C++ application that is built with the QT library. Basically, it records data during an a flight simulation and replays all the events on a time line. Here's a basic psedo example:
and all the time there is an output window that lists the planes name/speed/course/altitude, etc. from second to second. These attributes are hard coded and saved inCode:at 0s game start at 1s plane created at 10s plane accelerates at Xm/s/s at 11s plane speed is X at 15s plane turns Y degrees
There is a lot more to it, but you get the jist of it.Code:struct plane{.....}
What I'm trying to do:
As of now this is all hard coded. I am going to be altering the code so that the program can record ANY user specified data and replay it. So for example: instead of the output window listing the plane name/speed/course etc, I want the user to be able to alter a configuration file (dat/xml/txt) for their own types of data, like tracking a biker, giving stuff like miles biked/bike type/rider name/speed etc.
Someone gave me a suggestion to do it in xml files, but I'm not sure. I'm trying to figure out if i can do this with a dat file too, however I am clueless.
Any suggestion will be helpful, all I'm looking for is a nudge in a direction.
thanks for your help