Add `ctf::src::Ctf1MetadataStreamParser` class (TSDL)
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Sun, 10 Dec 2023 05:51:52 +0000 (05:51 +0000)
committerSimon Marchi <simon.marchi@efficios.com>
Wed, 4 Sep 2024 19:05:14 +0000 (15:05 -0400)
commit683aa0c2ca8668de6919c496faefd5484e807925
treeed9ea7dfc5e5f862e9339c32708cae60ac62590d
parent8bb4ee66770f1f182f4d7e34a3ac8804633c42bd
Add `ctf::src::Ctf1MetadataStreamParser` class (TSDL)

This patch adds the `ctf::src::Ctf1MetadataStreamParser` class which is
a concrete TSDL metadata stream parser inheriting
`ctf::src::MetadataStreamParser`.

parseSection() requires one or more complete root blocks of TSDL
contents.

`ctf::src::Ctf1MetadataStreamParser` also implements the static
ctf::src::Ctf1MetadataStreamParser::parse() which considers a whole
metadata stream. While this static method currently doesn't add anything
to creating a parser and calling parseSection() once, it could
eventually contain more validation knowing that the metadata stream was
completely parsed.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Change-Id: I55e0f2f05d64a0acc5949029e315aeefae424dda
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8000
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12734
src/Makefile.am
src/plugins/ctf/common/src/metadata/tsdl/ctf-1-metadata-stream-parser.cpp [new file with mode: 0644]
src/plugins/ctf/common/src/metadata/tsdl/ctf-1-metadata-stream-parser.hpp [new file with mode: 0644]
This page took 0.024583 seconds and 4 git commands to generate.