-
Notifications
You must be signed in to change notification settings - Fork 3
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
Switch to yaml-cpp #2
base: master
Are you sure you want to change the base?
Conversation
…d PC_type, PC_document_line
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.
This is some great work! A lot of it :) didn't have time to review it all yet, but these are my current comments
`some_map.yaml`: | ||
```yaml | ||
key_1: value_1 | ||
inner_sequence: !include "some_sequence.yaml" |
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.
do you support the !include
syntax in paraconf or was it already in yaml-cpp?
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.
It is paraconf feature
paraconf/include/paraconf/PC_node.h
Outdated
* | ||
* \return postprocessed node | ||
*/ | ||
PC_node postprocess_result(PC_node node) const; |
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 believe the include mechanism would better be implemented in a separate library
paraconf/src/PC_node.cxx
Outdated
size_t PC_node::size() const | ||
{ | ||
if (!m_node.IsDefined()) { | ||
throw Error{PC_NODE_NOT_FOUND, "Cannot get size of not defined tree"}; |
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 wouldn't use defensive programing, just state it as a prerequisite
g_error_context
)Should be tagged as
0.5.0