Skip to content

Commit

Permalink
Core: Added missing overload of CMsgPublisher::Create() for STopicInf…
Browse files Browse the repository at this point in the history
…ormation (eclipse-ecal#1134)
  • Loading branch information
hannemn authored Jun 29, 2023
1 parent 39ba8cb commit a2fb023
Showing 1 changed file with 22 additions and 7 deletions.
29 changes: 22 additions & 7 deletions ecal/core/include/ecal/msg/publisher.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,21 +94,36 @@ 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.
*
* @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 Expand Up @@ -197,4 +212,4 @@ namespace eCAL

std::vector<char> m_buffer;
};
}
}

0 comments on commit a2fb023

Please sign in to comment.