Skip to content

Commit

Permalink
Add type() to Message base class
Browse files Browse the repository at this point in the history
  • Loading branch information
tuokri committed Nov 15, 2023
1 parent 1729298 commit 142aab2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/umb/message.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ class Message
* message in bytes.
*/
[[nodiscard]] virtual size_t serialized_size() const = 0;

// TODO: reconsider this API.
[[nodiscard]] constexpr virtual uint16_t type() const noexcept = 0;
};

}
Expand Down

0 comments on commit 142aab2

Please sign in to comment.