Skip to content

Commit

Permalink
Don't dllexport stl containers, instead just the public interface
Browse files Browse the repository at this point in the history
Signed-off-by: Emerson Knapp <emerson.b.knapp@gmail.com>
  • Loading branch information
emersonknapp committed Nov 30, 2021
1 parent b390a86 commit 277d612
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
3 changes: 3 additions & 0 deletions rosbag2_transport/src/rosbag2_transport/topic_filter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ TopicFilter::TopicFilter(RecordOptions record_options, bool allow_unknown_types)
allow_unknown_types_(allow_unknown_types)
{}

TopicFilter::~TopicFilter()
{}

std::unordered_map<std::string, std::string> TopicFilter::filter_topics(
const std::map<std::string, std::vector<std::string>> & topic_names_and_types)
{
Expand Down
8 changes: 6 additions & 2 deletions rosbag2_transport/src/rosbag2_transport/topic_filter.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,22 @@
namespace rosbag2_transport
{

class ROSBAG2_TRANSPORT_PUBLIC TopicFilter
class TopicFilter
{
public:
ROSBAG2_TRANSPORT_PUBLIC
explicit TopicFilter(RecordOptions record_options, bool allow_unknown_types = false);
virtual ~TopicFilter() {}

ROSBAG2_TRANSPORT_PUBLIC
virtual ~TopicFilter();

/// Filter all topic_names_and_types via take_topic method, return the resulting filtered set
/// Filtering order is:
/// - remove topics with multiple types, unknown type, and hidden topics
/// - topics list
/// - exclude regex
/// - include regex OR "all"
ROSBAG2_TRANSPORT_PUBLIC
std::unordered_map<std::string, std::string> filter_topics(
const std::map<std::string, std::vector<std::string>> & topic_names_and_types);

Expand Down

0 comments on commit 277d612

Please sign in to comment.