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

[core] writer refactoring based on unique ptr #1573

Merged
merged 1 commit into from
Apr 26, 2024

Conversation

rex-schilasky
Copy link
Contributor

Description

All eCAL writer Create/Destroy functions removed. Constructor and destructor should be used to construct writers for udp, shm, tcp.

Related issues

Fixes #1475

@rex-schilasky rex-schilasky added the cherry-pick-to-NONE Don't cherry-pick these changes label Apr 26, 2024
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

@@ -33,56 +33,35 @@ namespace eCAL
{
const std::string CDataWriterSHM::m_memfile_base_name = "ecal_";

CDataWriterSHM::~CDataWriterSHM()
CDataWriterSHM::CDataWriterSHM(const std::string& host_name_, const std::string& topic_name_, const std::string& topic_id_)
Copy link
Contributor

Choose a reason for hiding this comment

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

warning: parameter 'host_name_' is unused [misc-unused-parameters]

Suggested change
CDataWriterSHM::CDataWriterSHM(const std::string& host_name_, const std::string& topic_name_, const std::string& topic_id_)
CDataWriterSHM::CDataWriterSHM(const std::string& /*host_name_*/, const std::string& topic_name_, const std::string& topic_id_)

@@ -33,56 +33,35 @@
{
const std::string CDataWriterSHM::m_memfile_base_name = "ecal_";

CDataWriterSHM::~CDataWriterSHM()
CDataWriterSHM::CDataWriterSHM(const std::string& host_name_, const std::string& topic_name_, const std::string& topic_id_)
Copy link
Contributor

Choose a reason for hiding this comment

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

warning: parameter 'topic_id_' is unused [misc-unused-parameters]

Suggested change
CDataWriterSHM::CDataWriterSHM(const std::string& host_name_, const std::string& topic_name_, const std::string& topic_id_)
CDataWriterSHM::CDataWriterSHM(const std::string& host_name_, const std::string& topic_name_, const std::string& /*topic_id_*/)

Copy link
Contributor

@KerstinKeller KerstinKeller left a comment

Choose a reason for hiding this comment

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

👍 I like Create / Destroy removal 😄

@rex-schilasky rex-schilasky merged commit 946ef7f into master Apr 26, 2024
17 checks passed
@rex-schilasky rex-schilasky deleted the hotfix/unique-ptr-based-writers branch April 26, 2024 12:54
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.

2 participants