Add `ctf::src::Ctf2MetadataStreamParser` class (JSON text sequence)
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Tue, 21 May 2024 17:57:03 +0000 (13:57 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Wed, 4 Sep 2024 19:05:14 +0000 (15:05 -0400)
commitc86bb441466f58d84f1accb3e09fdfd8c9c2e36b
tree56ff7d1f0d68350468526161085a42d2e1132922
parent6875eb64630a6d722fdd8336d4282d56a240dcd0
Add `ctf::src::Ctf2MetadataStreamParser` class (JSON text sequence)

This patch adds `ctf::src::Ctf2MetadataStreamParser` which inherits
`ctf::src::MetadataStreamParser` to implement a CTF 2 metadata stream
(JSON text sequence) parser.

The parser uses `Ctf2JsonAnyFragmentValReq` to validate each fragment,
and also performs other validation at the JSON level.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: I29a29e589b9de998a2fadf7be96871902e3fd76a
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12736
18 files changed:
src/Makefile.am
src/cpp-common/bt2c/make-span.hpp
src/plugins/ctf/common/src/metadata/json/ctf-2-fc-builder.cpp [new file with mode: 0644]
src/plugins/ctf/common/src/metadata/json/ctf-2-fc-builder.hpp [new file with mode: 0644]
src/plugins/ctf/common/src/metadata/json/ctf-2-metadata-stream-parser.cpp [new file with mode: 0644]
src/plugins/ctf/common/src/metadata/json/ctf-2-metadata-stream-parser.hpp [new file with mode: 0644]
src/plugins/ctf/common/src/metadata/json/fcs-with-role.cpp [new file with mode: 0644]
src/plugins/ctf/common/src/metadata/json/fcs-with-role.hpp [new file with mode: 0644]
src/plugins/ctf/common/src/metadata/json/key-fc-types.cpp [new file with mode: 0644]
src/plugins/ctf/common/src/metadata/json/key-fc-types.hpp [new file with mode: 0644]
src/plugins/ctf/common/src/metadata/json/normalize-field-locs.cpp [new file with mode: 0644]
src/plugins/ctf/common/src/metadata/json/normalize-field-locs.hpp [new file with mode: 0644]
src/plugins/ctf/common/src/metadata/json/resolve-fcs-with-int-sel.cpp [new file with mode: 0644]
src/plugins/ctf/common/src/metadata/json/resolve-fcs-with-int-sel.hpp [new file with mode: 0644]
src/plugins/ctf/common/src/metadata/json/utils.cpp [new file with mode: 0644]
src/plugins/ctf/common/src/metadata/json/utils.hpp [new file with mode: 0644]
src/plugins/ctf/common/src/metadata/json/validate-scope-fc-roles.cpp [new file with mode: 0644]
src/plugins/ctf/common/src/metadata/json/validate-scope-fc-roles.hpp [new file with mode: 0644]
This page took 0.024926 seconds and 4 git commands to generate.