Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[kxml_compiler]Pointer based accessor code generation #20

Open
martonmiklos opened this issue Dec 3, 2018 · 1 comment
Open

[kxml_compiler]Pointer based accessor code generation #20

martonmiklos opened this issue Dec 3, 2018 · 1 comment
Assignees
Labels
kxml_compiler kxml_compiler

Comments

@martonmiklos
Copy link
Collaborator

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?

@dfaure-kdab
Copy link
Collaborator

That's interesting. But pointers always open up the question about creation and ownership...
Maybe unique_ptr would help (shared_ptr sounds like overkill).

@martonmiklos martonmiklos added the kxml_compiler kxml_compiler label Dec 5, 2019
@martonmiklos martonmiklos self-assigned this Dec 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kxml_compiler kxml_compiler
Projects
None yet
Development

No branches or pull requests

2 participants