flt.utils.muxer: use a heap to sort iterators (also: rewrite in C++)
[babeltrace.git] / src / plugins / utils / muxer / comp.hpp
diff --git a/src/plugins/utils/muxer/comp.hpp b/src/plugins/utils/muxer/comp.hpp
new file mode 100644 (file)
index 0000000..2ce66a4
--- /dev/null
@@ -0,0 +1,30 @@
+/*
+ * SPDX-License-Identifier: MIT
+ *
+ * Copyright 2016 Jérémie Galarneau <jeremie.galarneau@efficios.com>
+ * Copyright 2017-2023 Philippe Proulx <pproulx@efficios.com>
+ */
+
+#ifndef BABELTRACE_PLUGINS_UTILS_MUXER_COMP_HPP
+#define BABELTRACE_PLUGINS_UTILS_MUXER_COMP_HPP
+
+#include "cpp-common/bt2/plugin-dev.hpp"
+
+namespace bt2mux {
+
+class Comp final : public bt2::UserFilterComponent<Comp>
+{
+    friend class MsgIter;
+    friend bt2::UserFilterComponent<Comp>;
+
+public:
+    explicit Comp(bt2::SelfFilterComponent selfComp, bt2::ConstMapValue params);
+
+private:
+    void _inputPortConnected(bt2::SelfComponentInputPort selfPort, bt2::ConstOutputPort otherPort);
+    void _addAvailInputPort();
+};
+
+} /* namespace bt2mux */
+
+#endif /* BABELTRACE_PLUGINS_UTILS_MUXER_COMP_HPP */
This page took 0.02422 seconds and 4 git commands to generate.