Skip to content
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

Use uint64_t for topic id in hdf5 #1883

Merged
merged 3 commits into from
Jan 10, 2025
Merged

Conversation

KerstinKeller
Copy link
Contributor

Changes the underlying type of the topic ID (there is no reason for IDs to be of a signed type).
Also add missing license headers.

@KerstinKeller KerstinKeller added the cherry-pick-to-NONE Don't cherry-pick these changes label Jan 9, 2025
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

clang-tidy made some suggestions

@@ -54,8 +73,7 @@ inline std::string printHex(eCAL::experimental::measurement::base::Channel::id_t

inline eCAL::experimental::measurement::base::Channel::id_t parseHexID(std::string string_id)
{
auto unsigned_value = std::stoull(string_id, 0, 16);
return static_cast<eCAL::experimental::measurement::base::Channel::id_t>(unsigned_value);
return std::stoull(string_id, 0, 16);
Copy link
Contributor

Choose a reason for hiding this comment

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

warning: use nullptr [modernize-use-nullptr]

Suggested change
return std::stoull(string_id, 0, 16);
return std::stoull(string_id, nullptr, 16);

@@ -68,7 +68,7 @@ namespace eCAL

struct Channel
{
using id_t = std::int64_t;
using id_t = std::uint64_t;

std::string name = "";
Copy link
Contributor

Choose a reason for hiding this comment

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

warning: no type named 'string' in namespace 'std' [clang-diagnostic-error]

          std::string name = "";
               ^

Copy link
Contributor

@Peguen Peguen left a comment

Choose a reason for hiding this comment

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

👍

@KerstinKeller KerstinKeller merged commit 8e4d7f9 into master Jan 10, 2025
20 checks passed
@KerstinKeller KerstinKeller deleted the feature/hdf5-unsigned-topic-id branch January 13, 2025 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherry-pick-to-NONE Don't cherry-pick these changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants