Recently I needed to create a tool (with Qt) which parses an XML, modify a few thing and write it back to file.
If I use the current kxml_compiler generated code I need to copy the whole parsed structure to do these modifications.
I was thinking about extending the kxml_compiler to add an option which would allow to generate classes having pointer based accessors.
That's interesting. But pointers always open up the question about creation and ownership...
Maybe unique_ptr would help (shared_ptr sounds like overkill).
Hi @cornelius, @dfaure
Recently I needed to create a tool (with Qt) which parses an XML, modify a few thing and write it back to file. If I use the current kxml_compiler generated code I need to copy the whole parsed structure to do these modifications.
I was thinking about extending the kxml_compiler to add an option which would allow to generate classes having pointer based accessors.
What do you think about this approach?