Add C++ interface for the libbabeltrace2 `bt_field` API
This patch adds C++ wrappers for Babeltrace 2 field objects.
The class hierarchy is:
Field
BoolField
BitArrayField
UnsignedIntegerField
UnsignedEnumerationField
SignedIntegerField
SignedEnumerationField
SinglePrecisionRealField
DoublePrecisionRealField
StringField
StructureField
ArrayField
DynamicArrayField
OptionField
VariantField
ConstField
ConstBoolField
ConstBitArrayField
ConstUnsignedIntegerField
ConstUnsignedEnumerationField
ConstSignedIntegerField
ConstSignedEnumerationField
ConstSinglePrecisionRealField
ConstDoublePrecisionRealField
ConstStringField
ConstStructureField
ConstArrayField
ConstDynamicArrayField
ConstOptionField
ConstVariantField
EnumerationFieldClassMappingLabels
Implicitly convert from a mutable field to a constant field with
converting constructors and assignment operators.
Those new template classes follow the approach of other wrappers in
`src/cpp-common/bt2`.
Each specialized field type has a cls() method which returns a
corresponding specialized field class type instance.
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: Ic8886033befc38366f3ee676e0c779640420a72f
Reviewed-on: https://review.lttng.org/c/babeltrace/+/4629
This page took 0.032075 seconds and 4 git commands to generate.