Fix: file-descriptor: missing include guards
[lttng-tools.git] / src / bin / lttng-sessiond / trace-class.cpp
CommitLineData
0220be14
JG
1/*
2 * Copyright (C) 2022 Jérémie Galarneau <jeremie.galarneau@efficios.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-only
5 *
6 */
7
8#include "trace-class.hpp"
9
10namespace lst = lttng::sessiond::trace;
11
28ab034a
JG
12lttng::sessiond::trace::trace_class::trace_class(const struct abi& in_abi,
13 const lttng_uuid& in_trace_uuid) :
5e3b23be 14 abi(in_abi), uuid(in_trace_uuid)
0220be14
JG
15{
16}
17
18void lttng::sessiond::trace::trace_class::accept(trace_class_visitor& trace_class_visitor) const
19{
20 trace_class_visitor.visit(*this);
21 _accept_on_clock_classes(trace_class_visitor);
0220be14
JG
22 _accept_on_stream_classes(trace_class_visitor);
23}
24
da9dd521 25void lst::trace_class_environment_visitor::visit(const environment_field<std::string>& field)
0220be14
JG
26{
27 visit(environment_field<const char *>(field.name, field.value.c_str()));
28}
This page took 0.033469 seconds and 4 git commands to generate.