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

new publisher parameter api (sync with eclipse-ecal) #66

Merged
merged 30 commits into from
May 16, 2024

Conversation

rex-schilasky
Copy link
Contributor

No description provided.

Copy link

@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

ecal/core/include/ecal/msg/capnproto/publisher.h Outdated Show resolved Hide resolved
ecal/core/include/ecal/msg/publisher.h Outdated Show resolved Hide resolved
ecal/core/include/ecal/msg/publisher.h Outdated Show resolved Hide resolved
ecal/core/include/ecal/msg/string/publisher.h Outdated Show resolved Hide resolved
ecal/tests/cpp/pubsub_test/src/pubsub_test.cpp Outdated Show resolved Hide resolved
ecal/tests/cpp/pubsub_test/src/pubsub_test.cpp Outdated Show resolved Hide resolved
ecal/tests/cpp/pubsub_test/src/pubsub_test.cpp Outdated Show resolved Hide resolved
ecal/tests/cpp/pubsub_test/src/pubsub_test.cpp Outdated Show resolved Hide resolved
ecal/tests/cpp/pubsub_test/src/pubsub_test.cpp Outdated Show resolved Hide resolved
Copy link

@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

ecal/core/src/readwrite/shm/ecal_writer_shm.cpp Outdated Show resolved Hide resolved
ecal/core/src/readwrite/shm/ecal_writer_shm.cpp Outdated Show resolved Hide resolved
ecal/core/src/readwrite/shm/ecal_writer_shm.cpp Outdated Show resolved Hide resolved
Copy link

@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

ecal/tests/cpp/pubsub_test/src/pubsub_test_shm.cpp Outdated Show resolved Hide resolved
ecal/tests/cpp/pubsub_test/src/pubsub_test_shm.cpp Outdated Show resolved Hide resolved
ecal/tests/cpp/pubsub_test/src/pubsub_test_shm.cpp Outdated Show resolved Hide resolved
ecal/tests/cpp/pubsub_test/src/pubsub_test_udp.cpp Outdated Show resolved Hide resolved
ecal/tests/cpp/pubsub_test/src/pubsub_test_udp.cpp Outdated Show resolved Hide resolved
ecal/tests/cpp/pubsub_test/src/pubsub_test_udp.cpp Outdated Show resolved Hide resolved
Copy link

@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

ecal/core/include/ecal/ecal_publisher_config.h Outdated Show resolved Hide resolved
ecal/core/include/ecal/ecal_publisher_config.h Outdated Show resolved Hide resolved
ecal/core/include/ecal/ecal_publisher_config.h Outdated Show resolved Hide resolved
ecal/core/include/ecal/msg/flatbuffers/publisher.h Outdated Show resolved Hide resolved
ecal/core/include/ecal/msg/flatbuffers/publisher.h Outdated Show resolved Hide resolved
ecal/core/include/ecal/msg/publisher.h Outdated Show resolved Hide resolved
ecal/core/include/ecal/msg/publisher.h Outdated Show resolved Hide resolved
ecal/core/include/ecal/msg/string/publisher.h Outdated Show resolved Hide resolved
Copy link

@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

ecal/core/include/ecal/msg/capnproto/publisher.h Outdated Show resolved Hide resolved
ecal/tests/cpp/pubsub_test/src/pubsub_test.cpp Outdated Show resolved Hide resolved
ecal/tests/cpp/pubsub_test/src/pubsub_test.cpp Outdated Show resolved Hide resolved
ecal/tests/cpp/pubsub_test/src/pubsub_test.cpp Outdated Show resolved Hide resolved
ecal/tests/cpp/pubsub_test/src/pubsub_test.cpp Outdated Show resolved Hide resolved
SHMConfig -> Publisher::SHM::Configuration
UDPConfig -> Publisher::UDP::Configuration
TCPConfig -> Publisher::TCP::Configuration
Copy link

@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

ecal/core/include/ecal/msg/publisher.h Show resolved Hide resolved
ecal/core/include/ecal/msg/publisher.h Show resolved Hide resolved
@@ -60,7 +60,7 @@ namespace eCAL

// call the function via its class because it's a virtual function that is called in constructor/destructor,-
// where the vtable is not created yet, or it's destructed.
explicit CPublisher(const std::string& topic_name_) : CMsgPublisher<T>(topic_name_, GetDataTypeInformation())
explicit CPublisher(const std::string& topic_name_, const eCAL::Publisher::Configuration& config_ = {}) : CMsgPublisher<T>(topic_name_, GetDataTypeInformation(), config_)
Copy link

Choose a reason for hiding this comment

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

warning: Call to virtual method 'CPublisher::GetDataTypeInformation' during construction bypasses virtual dispatch [clang-analyzer-optin.cplusplus.VirtualCall]

      explicit CPublisher(const std::string& topic_name_, const eCAL::Publisher::Configuration& config_ = {}) : CMsgPublisher<T>(topic_name_, GetDataTypeInformation(), config_)
                                                                                                                                              ^
Additional context

ecal/tests/cpp/pubsub_test/src/pubsub_acknowledge.cpp:50: Control jumps to 'case 0:' at line 51

  EXPECT_EQ(0, eCAL::Initialize(0, nullptr, "TimeoutAcknowledgment", eCAL::Init::All));
  ^

thirdparty/gtest/googletest/googletest/include/gtest/gtest.h:1868: expanded from macro 'EXPECT_EQ'

  EXPECT_PRED_FORMAT2(::testing::internal::EqHelper::Compare, val1, val2)
  ^

thirdparty/gtest/googletest/googletest/include/gtest/gtest_pred_impl.h:143: expanded from macro 'EXPECT_PRED_FORMAT2'

  GTEST_PRED_FORMAT2_(pred_format, v1, v2, GTEST_NONFATAL_FAILURE_)
  ^

thirdparty/gtest/googletest/googletest/include/gtest/gtest_pred_impl.h:133: expanded from macro 'GTEST_PRED_FORMAT2_'

  GTEST_ASSERT_(pred_format(#v1, #v2, v1, v2), on_failure)
  ^

thirdparty/gtest/googletest/googletest/include/gtest/gtest_pred_impl.h:77: expanded from macro 'GTEST_ASSERT_'

  GTEST_AMBIGUOUS_ELSE_BLOCKER_                                 \
  ^

thirdparty/gtest/googletest/googletest/include/gtest/internal/gtest-port.h:711: expanded from macro 'GTEST_AMBIGUOUS_ELSE_BLOCKER_'

  switch (0)                          \
  ^

ecal/tests/cpp/pubsub_test/src/pubsub_acknowledge.cpp:50: Assuming the condition is true

  EXPECT_EQ(0, eCAL::Initialize(0, nullptr, "TimeoutAcknowledgment", eCAL::Init::All));
  ^

thirdparty/gtest/googletest/googletest/include/gtest/gtest.h:1868: expanded from macro 'EXPECT_EQ'

  EXPECT_PRED_FORMAT2(::testing::internal::EqHelper::Compare, val1, val2)
  ^

thirdparty/gtest/googletest/googletest/include/gtest/gtest_pred_impl.h:143: expanded from macro 'EXPECT_PRED_FORMAT2'

  GTEST_PRED_FORMAT2_(pred_format, v1, v2, GTEST_NONFATAL_FAILURE_)
  ^

thirdparty/gtest/googletest/googletest/include/gtest/gtest_pred_impl.h:133: expanded from macro 'GTEST_PRED_FORMAT2_'

  GTEST_ASSERT_(pred_format(#v1, #v2, v1, v2), on_failure)
  ^

thirdparty/gtest/googletest/googletest/include/gtest/gtest_pred_impl.h:78: expanded from macro 'GTEST_ASSERT_'

  if (const ::testing::AssertionResult gtest_ar = (expression)) \
                                       ^

ecal/tests/cpp/pubsub_test/src/pubsub_acknowledge.cpp:50: Taking true branch

  EXPECT_EQ(0, eCAL::Initialize(0, nullptr, "TimeoutAcknowledgment", eCAL::Init::All));
  ^

thirdparty/gtest/googletest/googletest/include/gtest/gtest.h:1868: expanded from macro 'EXPECT_EQ'

  EXPECT_PRED_FORMAT2(::testing::internal::EqHelper::Compare, val1, val2)
  ^

thirdparty/gtest/googletest/googletest/include/gtest/gtest_pred_impl.h:143: expanded from macro 'EXPECT_PRED_FORMAT2'

  GTEST_PRED_FORMAT2_(pred_format, v1, v2, GTEST_NONFATAL_FAILURE_)
  ^

thirdparty/gtest/googletest/googletest/include/gtest/gtest_pred_impl.h:133: expanded from macro 'GTEST_PRED_FORMAT2_'

  GTEST_ASSERT_(pred_format(#v1, #v2, v1, v2), on_failure)
  ^

thirdparty/gtest/googletest/googletest/include/gtest/gtest_pred_impl.h:78: expanded from macro 'GTEST_ASSERT_'

  if (const ::testing::AssertionResult gtest_ar = (expression)) \
  ^

ecal/tests/cpp/pubsub_test/src/pubsub_acknowledge.cpp:60: Calling constructor for 'CPublisher<std::basic_string>'

  eCAL::string::CPublisher<std::string> pub("topic", pub_config);
                                        ^

ecal/core/include/ecal/msg/string/publisher.h:62: Call to virtual method 'CPublisher::GetDataTypeInformation' during construction bypasses virtual dispatch

      explicit CPublisher(const std::string& topic_name_, const eCAL::Publisher::Configuration& config_ = {}) : CMsgPublisher<T>(topic_name_, GetDataTypeInformation(), config_)
                                                                                                                                              ^

Copy link

@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

ecal/core/src/readwrite/ecal_writer.cpp Outdated Show resolved Hide resolved
Copy link

@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

ecal/core/src/readwrite/ecal_reader.cpp Show resolved Hide resolved
ecal/core/src/readwrite/ecal_writer.cpp Outdated Show resolved Hide resolved
ecal/core/src/readwrite/shm/ecal_writer_shm.h Outdated Show resolved Hide resolved
Copy link

@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

ecal/core/src/readwrite/ecal_writer.cpp Outdated Show resolved Hide resolved
ecal/core/src/readwrite/ecal_writer.h Show resolved Hide resolved
reader Create/Destroy replaced by Constructor/Destructor
Copy link

@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

ecal/core/src/readwrite/ecal_reader.cpp Outdated Show resolved Hide resolved
ecal/core/src/readwrite/ecal_reader.cpp Outdated Show resolved Hide resolved
ecal/core/src/readwrite/ecal_writer.cpp Outdated Show resolved Hide resolved
…scriber, client, server)

Create/Destroy -> Start/Stop
Copy link

@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

}

void CSubGate::Create()
void CSubGate::Start()

Choose a reason for hiding this comment

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

warning: method 'Start' can be made static [readability-convert-member-functions-to-static]

ecal/core/src/pubsub/ecal_subgate.h:42:

-     void Start();
+     static void Start();

}

void CClientGate::Create()
void CClientGate::Start()

Choose a reason for hiding this comment

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

warning: method 'Start' can be made static [readability-convert-member-functions-to-static]

ecal/core/src/service/ecal_clientgate.h:47:

-     void Start();
+     static void Start();

}

void CServiceGate::Create()
void CServiceGate::Start()

Choose a reason for hiding this comment

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

warning: method 'Start' can be made static [readability-convert-member-functions-to-static]

ecal/core/src/service/ecal_servicegate.h:41:

-     void Start();
+     static void Start();

@rex-schilasky rex-schilasky merged commit 95b27b8 into main May 16, 2024
82 checks passed
@rex-schilasky rex-schilasky deleted the feature/parameter-api-publisher branch May 16, 2024 14:33
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.

1 participant