cpp-common/bt2: `CompClsBridge`: pass init method data to user component constructors
[babeltrace.git] / src / plugins / utils / muxer / comp.hpp
CommitLineData
fca1d0f5
PP
1/*
2 * SPDX-License-Identifier: MIT
3 *
4 * Copyright 2016 Jérémie Galarneau <jeremie.galarneau@efficios.com>
5 * Copyright 2017-2023 Philippe Proulx <pproulx@efficios.com>
6 */
7
8#ifndef BABELTRACE_PLUGINS_UTILS_MUXER_COMP_HPP
9#define BABELTRACE_PLUGINS_UTILS_MUXER_COMP_HPP
10
11#include "cpp-common/bt2/plugin-dev.hpp"
12
06bb401e
SM
13#include "msg-iter.hpp"
14
fca1d0f5
PP
15namespace bt2mux {
16
06bb401e
SM
17class MsgIter;
18
19class Comp final : public bt2::UserFilterComponent<Comp, MsgIter>
fca1d0f5
PP
20{
21 friend class MsgIter;
06bb401e 22 friend bt2::UserFilterComponent<Comp, MsgIter>;
fca1d0f5
PP
23
24public:
e66071f3 25 explicit Comp(bt2::SelfFilterComponent selfComp, bt2::ConstMapValue params, void *);
fca1d0f5
PP
26
27private:
28 void _inputPortConnected(bt2::SelfComponentInputPort selfPort, bt2::ConstOutputPort otherPort);
29 void _addAvailInputPort();
30};
31
32} /* namespace bt2mux */
33
34#endif /* BABELTRACE_PLUGINS_UTILS_MUXER_COMP_HPP */
This page took 0.02663 seconds and 4 git commands to generate.