2 * Copyright (C) 2022 Jérémie Galarneau <jeremie.galarneau@efficios.com>
4 * SPDX-License-Identifier: GPL-2.0-only
8 #include "stream-class.hpp"
9 #include "trace-class.hpp"
11 namespace lst
= lttng::sessiond::trace
;
13 lttng::sessiond::trace::stream_class::stream_class(
15 enum header_type in_header_type
,
16 nonstd::optional
<std::string
> in_default_clock_class_name
) :
18 header_type_
{ in_header_type
},
19 default_clock_class_name
{ std::move(in_default_clock_class_name
) }
23 void lst::stream_class::accept(trace_class_visitor
& visitor
) const
26 _accept_on_event_classes(visitor
);
29 const lttng::sessiond::trace::type
*lst::stream_class::packet_context() const
31 return _packet_context
.get();
34 const lttng::sessiond::trace::type
*lst::stream_class::event_header() const
36 return _event_header
.get();
39 const lttng::sessiond::trace::type
*lst::stream_class::event_context() const
41 return _event_context
.get();