Skip to content

Interface Breakout Refactoring#48

Merged
MJC598 merged 6 commits intomainfrom
interface-refactor
Apr 15, 2024
Merged

Interface Breakout Refactoring#48
MJC598 merged 6 commits intomainfrom
interface-refactor

Conversation

@MJC598
Copy link
Copy Markdown
Contributor

@MJC598 MJC598 commented Apr 12, 2024

This is breaking out the interfaces (specifically Config). It should theoretically explain what I'm thinking with OO design?

@MJC598 MJC598 requested a review from ddbaptiste April 12, 2024 16:46
@MJC598 MJC598 self-assigned this Apr 12, 2024
Copy link
Copy Markdown
Member

@ddbaptiste ddbaptiste left a comment

Choose a reason for hiding this comment

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

There are a lot of ideas that I like in this.

I'm requesting changes to parse(), detailed in comments in-context.

I also want to say that I don't like that Config::get() requires a default_value argument. It's nearly equivalent to using ptree's templated get(). As get() is used when an input parameter is required, it should fail (i.e. error) if there is no specified value, so the user knows that there was an issue with their input.

Comment thread include/Configuration.hpp
Comment thread src/Configuration.cpp Outdated
Comment thread src/Configuration.cpp
Comment thread include/Configuration.hpp Outdated
Comment thread test/ConfigurationTest.cpp
@MJC598 MJC598 requested a review from ddbaptiste April 15, 2024 16:05
Copy link
Copy Markdown
Member

@ddbaptiste ddbaptiste left a comment

Choose a reason for hiding this comment

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

Just one more small change requested in this review.

Comment thread src/Configuration.cpp
@MJC598 MJC598 requested a review from ddbaptiste April 15, 2024 16:30
@MJC598 MJC598 merged commit 728535e into main Apr 15, 2024
@ddbaptiste ddbaptiste deleted the interface-refactor branch April 15, 2024 21:13
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