Skip to content

Commit

Permalink
API reset to V5
Browse files Browse the repository at this point in the history
  • Loading branch information
rex-schilasky committed Dec 6, 2024
1 parent dab91fe commit 34deb2f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions ecal/core/include/ecal/ecal_publisher.h
Original file line number Diff line number Diff line change
Expand Up @@ -190,14 +190,14 @@ namespace eCAL
bool ClearAttribute(const std::string& attr_name_);

/**
* @brief Set a topic filter id.
* @brief Set the specific topic filter id.
*
* @param filter_id_ The topic id for subscriber side filtering (0 == no id).
*
* @return True if it succeeds, false if it fails.
**/
ECAL_API_EXPORTED_MEMBER
bool SetFilterID(long long filter_id_);
bool SetID(long long filter_id_);

/**
* @brief Send a message to all subscribers.
Expand Down Expand Up @@ -260,7 +260,7 @@ namespace eCAL
* @return True if created, false if not.
**/
ECAL_API_EXPORTED_MEMBER
bool IsCreated() const {return(m_datawriter != nullptr);}
bool IsCreated() const { return(m_datawriter != nullptr); }

/**
* @brief Query if the publisher is subscribed.
Expand Down
8 changes: 4 additions & 4 deletions ecal/core/include/ecal/ecal_subscriber.h
Original file line number Diff line number Diff line change
Expand Up @@ -169,14 +169,14 @@ namespace eCAL
bool Destroy();

/**
* @brief Set a set of id's to prefiltering topics (see CPublisher::SetFilterID).
* @brief Set a set of id's to prefiltering topics (see CPublisher::SetID).
*
* @param filter_ids_ Set of id's.
* @param filter_ids_ Set of filter id's.
*
* @return True if it succeeds, false if it fails.
**/
ECAL_API_EXPORTED_MEMBER
bool SetFilterIDs(const std::set<long long>& filter_ids_);
bool SetID(const std::set<long long>& filter_ids_);

/**
* @brief Sets subscriber attribute.
Expand Down Expand Up @@ -267,7 +267,7 @@ namespace eCAL
* @return true if created, false if not.
**/
ECAL_API_EXPORTED_MEMBER
bool IsCreated() const {return(m_datareader != nullptr);}
bool IsCreated() const { return(m_datareader != nullptr); }

/**
* @brief Query if the subscriber is published.
Expand Down
2 changes: 1 addition & 1 deletion ecal/core/src/pubsub/ecal_publisher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ namespace eCAL
return m_datawriter->ClearAttribute(attr_name_);
}

bool CPublisher::SetFilterID(long long filter_id_)
bool CPublisher::SetID(long long filter_id_)
{
m_filter_id = filter_id_;
return true;
Expand Down
2 changes: 1 addition & 1 deletion ecal/core/src/pubsub/ecal_subscriber.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ namespace eCAL
return(true);
}

bool CSubscriber::SetFilterIDs(const std::set<long long>& filter_ids_)
bool CSubscriber::SetID(const std::set<long long>& filter_ids_)
{
if (m_datareader == nullptr) return(false);
m_datareader->SetFilterIDs(filter_ids_);
Expand Down

0 comments on commit 34deb2f

Please sign in to comment.