Skip to content

Commit

Permalink
Added CMsgPublisher::Create() method with STopicInformation signature
Browse files Browse the repository at this point in the history
  • Loading branch information
hannemn committed Jun 29, 2023
1 parent 39ba8cb commit d970e51
Showing 1 changed file with 22 additions and 6 deletions.
28 changes: 22 additions & 6 deletions ecal/core/include/ecal/msg/publisher.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,21 +94,37 @@ namespace eCAL

virtual ~CMsgPublisher() = default;



/**
* @brief Creates this object.
* @brief Creates this object.
*
* @param topic_name_ Unique topic name.
* @param topic_type_ Type name (optional for type checking).
* @param topic_desc_ Type description (optional for description checking).
* @param topic_name_ Unique topic name.
* @param topic_type_ Type name (optional for type checking).
* @param topic_desc_ Type description (optional for description checking).
*
* @return True if it succeeds, false if it fails.
* @return True if it succeeds, false if it fails.
**/
[[deprecated("Please use the method CMsgSubscriber(const std::string& topic_name_, const STopicInformation& topic_info_) instead. This function will be removed in eCAL6. ")]]
[[deprecated("Please use the method Create(const std::string& topic_name_, const STopicInformation& topic_info_) instead. This function will be removed in eCAL6. ")]]
bool Create(const std::string& topic_name_, const std::string& topic_type_ = "", const std::string& topic_desc_ = "")
{
return(CPublisher::Create(topic_name_, topic_type_, topic_desc_));
}

/**
* @brief Creates this object.
*
* @param topic_name_ Unique topic name.
* @param topic_info_ Associated topic information.
* @param topic_desc_ Type description (optional for description checking).
*
* @return True if it succeeds, false if it fails.
**/
bool Create(const std::string& topic_name_, const STopicInformation& topic_info_)
{
return(CPublisher::Create(topic_name_, topic_info_));
}

/**
* @brief Destroys this object.
*
Expand Down

0 comments on commit d970e51

Please sign in to comment.