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

[WIP] pingmessage: Add function_map variable #61

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

patrickelectric
Copy link
Member

This new variable will help us to create a better log from all function
return the function name and the value on it.

Right now this variable can't return pointer types.

Signed-off-by: Patrick José Pereira [email protected]

@patrickelectric patrickelectric requested a review from jaxxzer July 29, 2018 14:37
@patrickelectric patrickelectric changed the title pingmessage: Add function_map variable [WIP] pingmessage: Add function_map variable Jul 29, 2018
Copy link
Member

@jaxxzer jaxxzer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An idea, maybe make a QPingMessage class to move the qt faff to another file and leave a pure c++ file?

@patrickelectric
Copy link
Member Author

That's something that I thought. But having two differents implementation of the same thing will increase the debug/development time. Also, the good point to use the same implementation for Qt and pure-cpp is that we catch a bug for both.

This new variable will help us to create a better log from all function
return the function name and the value on it.

Right now this variable can't return pointer types.

Signed-off-by: Patrick José Pereira <[email protected]>
Signed-off-by: Patrick José Pereira <[email protected]>
@patrickelectric patrickelectric changed the title [WIP] pingmessage: Add function_map variable pingmessage: Add function_map variable Jul 30, 2018
@jaxxzer
Copy link
Member

jaxxzer commented Jul 30, 2018

A subclass with the extra functions is still the same implementation. (I guess QPingMessage is not a good recommendation as it would imply QObject inheritance). We can leave it.

@patrickelectric
Copy link
Member Author

We'll need to subclass all pure c++ classes .

@patrickelectric patrickelectric changed the base branch from dev to master September 19, 2018 19:04
@patrickelectric patrickelectric changed the title pingmessage: Add function_map variable [WIP] pingmessage: Add function_map variable Apr 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants