Gaurav
Prince
- Joined
- May 14, 2006
- Messages
- 404
Impaler[WrG];5188340 said:As for the global exposure of XML values to Python, I've heard this idea before but I'm just now beginning to think of a way this could be done, by a series of Hash maps on CvInfoBase. This could be loaded up with every tag or at least the ones that aren't nested and exposed to Python through some kind of call similar to the GC.getIndexforString call. I think this is doable but would probably result in a rather hefty load slowdown and all calls to the data will be slowed by the string interpretation.
Actually a good start is just something that is better than CvInfoBase.xmlValue(), so that I don't have to run a ridiculously slow python XML parser or come up with a complicated regex. Perhaps just a few short functions similar to CvInfoBase.getXMLStringByTagName(szTagName). Should be fairly quick if there are no C++ gotchas I've forgotten about.