src/cpp-common: make `bt2c::JsonVal` visitable
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Tue, 21 May 2024 16:52:08 +0000 (12:52 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Wed, 4 Sep 2024 19:05:14 +0000 (15:05 -0400)
commit40a18c0b89fa1b38178c9a8d4be029e925d1f081
tree109ea01a6d8d450ef81c889c3fc93b875d1e123d
parent572c38b700928d0b27c8bc9cfef105d736ba8c34
src/cpp-common: make `bt2c::JsonVal` visitable

This patch adds the bt2c::JsonVal::accept() method which accepts a JSON
value visitor (`bt2c::JsonValVisitor`), dispatching to the virtual
bt2c::JsonVal::_accept() method.

This is part of an effort to support CTF2‑SPEC‑2.0 [1].

[1]: https://diamon.org/ctf/CTF2-SPEC-2.0.html

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: I75462799f9433ee868b618ecba4ba63b5822b96c
Reviewed-on: https://review.lttng.org/c/babeltrace/+/7485
Reviewed-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12685
src/cpp-common/bt2c/json-val.cpp
src/cpp-common/bt2c/json-val.hpp
This page took 0.024131 seconds and 4 git commands to generate.