(<Insert standard, which is the correct section for this thread>? question here)
Hello all,
I have in at least one place mentioned that I wanted to add in code to the XML reader to help debugging by allowing the output of which line number the reader is on while parsing out useful information. Upon digging around in a few files, finding out that the entire XML file is read in as one big chunk, and adjusting my methodology, I ended up fumbling around a bit and eventually running out of time\interest in my undertaking.
My first question is this: Although I understand the idea and benefits of creating interface classes for the underlying logic, and the basic theory of how it is implemented, when I tried to add in a counter, a function to output which line the reader was on, and snake up towards the interface class it compiled. The catch was when I tried to call the function, the engine crashed. Is there some sort of trick to creating some underlying logic, and snaking up a function to let it be called that I'm not aware of as I've never had to work on the "innerds" of a project that uses Interfaces?
Secondly, While I'm at it, without doing the work for me, does anybody have some suggestions for the best way to go about this? And while I'm digging around in the XML reader, are there any other (simple) requests for functions to help folks out?
Several months ago, I noticed that one of the example applications int he SDK was missing a project file for Codeblocks. I decided to create it, made sure it worked on both Windows and Linux, and submitted it. Although that was a rather minor contribution, I love the idea of the community being able to pitch into a project. This function I want to add should hopefully help others while using the built-in XML reader.
XML Reader Line Number Addition
XML Reader Line Number Addition
The Open Descent Foundation is always looking for programmers! http://www.odf-online.org
"I'll find out if what I deleted was vital here shortly..." -d3jake
"I'll find out if what I deleted was vital here shortly..." -d3jake
-
- Posts: 1215
- Joined: Tue Jan 09, 2007 7:03 pm
- Location: Leuven, Belgium
About the crash, did it give you some kind of error code? I've had a lot of crashes when tinkering with the engine itself by wanting to get everything done relatively fast which resulted in me forgetting something rather trivial (not saying that this is your case, but it could be a possibility)
This could range from the program somehow not using the right DLL in comparison to the linked library, or some error with virtual functions
I had actually never thought about a way for detecting which line number the reader is on, my own small and buggy xml reader doesn't have this function either, I should work on that
This could range from the program somehow not using the right DLL in comparison to the linked library, or some error with virtual functions
I had actually never thought about a way for detecting which line number the reader is on, my own small and buggy xml reader doesn't have this function either, I should work on that