-
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
Refactors the MessageWidget class #402
Conversation
25961c6
to
a322e77
Compare
os << value.enumVal.value().name; | ||
} | ||
std::ostream& operator<<(std::ostream& os, const internal::Message::Variant& value) { | ||
std::visit([&os](auto&& arg) { os << arg; }, value); |
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.
nice
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.
LGTM!
|
||
/// @brief Holds the information of a google::protobuf::Message to be consumed | ||
/// by a Qt widget. | ||
/// @details Holds a variant like-struct when it is a leaf node in the message |
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.
nit: Techincally, it isn't holding a "variant like-struct" anymore.
// Serializes a @p value into @p os. Provides a valid operator overload for | ||
// internal::Message::EnumValue so the following function's lambda can be | ||
// resolved. | ||
std::ostream& operator<<(std::ostream& os, const internal::Message::EnumValue& value) { |
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.
nit: _os
instead of os
. _value
instead of value
.
os << value.enumVal.value().name; | ||
} | ||
std::ostream& operator<<(std::ostream& os, const internal::Message::Variant& value) { | ||
std::visit([&os](auto&& arg) { os << arg; }, value); |
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.
😎
c0b954d
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.
LGTM
With this PR, the refactor to TopicInterfacePlugin finishes and #332 can be closed.