-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add back logger #49
base: main
Are you sure you want to change the base?
Add back logger #49
Conversation
It's not clear to me where the
Is this the intended use? It seems a bit awkward. P.P.S.: It looks like spelling |
Would it be possible to automically skip defining empty functions? For example: Can we add
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added some comments based what I'm seeing in the generated code. Some may be addressed in other PRs.
Yes and yes! Can you write up the first one as a separate Issue? I'll address them in different branches so as not to make this into an omnibus branch. (The core.h I'm already working on in my current branch.) |
Unfortunately, at the moment that is basically the way it's used. The design was to support the factory creation pattern we were using in libtk205. Each "root" class contained a static logger instance, which the code autogenerator could assume would be used in all the support structs that were populated through the root class. We can definitely add a cleaner interface for simple schema. I'll fix the naming issue for this PR. |
This branch adds back the Courier logger to be able to pass json reading errors back out to the calling library.
Some other minor changes to the generator code too, mostly formatting and cleanup.
This generator code still doesn't have a test build setup, so the C++ changes aren't tested for functionality yet, but I'd like to hold that to another separate branch.