cpp-common/bt2: add C++ plugin bindings
authorSimon Marchi <simon.marchi@efficios.com>
Fri, 16 Feb 2024 19:33:07 +0000 (14:33 -0500)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Thu, 29 Feb 2024 23:46:23 +0000 (18:46 -0500)
commit3641e3ec94edca0ecb4d5a7675d2ec5ae4804cff
treee5eb1a2706d58a8dabc1250aba52e509e97b7caa
parentc40b7b8a76c864db9c74b2ecf6833f52fc7646e0
cpp-common/bt2: add C++ plugin bindings

Add C++ bindings around `bt_plugin`.  There is only the const version
(`ConstPlugin`), because there is no need for a non-const plugin.

Get the scalar properties of a plugin using the `name`, `description`,
`author`, `license` and `path` methods.

Get the version of a plugin using the `version` method.

Get the component classes provided by the plugin using the
`sourceComponentClasses`, `filterComponentClasses` and
`sinkComponentClasses` methods.  These methods return proxy objects that
can be iterated on.  They also defined an `operator[]` method to access
component classes by name.

Change-Id: I5121c7c54a8058e5ca116618472ec8bb63f3a825
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/11822
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Tested-by: jenkins <jenkins@lttng.org>
src/Makefile.am
src/cpp-common/bt2/plugin.hpp [new file with mode: 0644]
This page took 0.024758 seconds and 4 git commands to generate.