cpp-common/bt2: add C++ graph bindings
authorSimon Marchi <simon.marchi@efficios.com>
Wed, 14 Feb 2024 16:11:43 +0000 (11:11 -0500)
committerSimon Marchi <simon.marchi@efficios.com>
Mon, 19 Feb 2024 18:10:15 +0000 (13:10 -0500)
commit14d33b5a3557209b9958c3accecd2f6f676b339b
treee6e01f4f5739ab4b097a9e49716661a2c8caf3d0
parent402b595cfb5d280444a576fc906887255b59868f
cpp-common/bt2: add C++ graph bindings

Add C++ bindings to create and manipulate graphs.

Create `bt2::Graph` objects with the `bt2::Graph::create()` static
method.

Add components to graphs with the `bt2::Graph::addComponent()`
methods.  There are overloads of this methods for sources, filters and
sinks, and with and without initialization data.

Connect ports with the `bt2::Graph::connectPorts()` method.  The method
does not (yet) provide access to the connection object returned by the
lib.

Run a graph with `bt2::Graph::run()` or `bt2::Graph::run_once()`.

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