Remove fcntl wrapper
[lttng-tools.git] / src / bin / lttng-sessiond / event-class.cpp
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 "event-class.hpp"
9 #include "trace-class.hpp"
10
11 namespace lst = lttng::sessiond::trace;
12
13 lst::event_class::event_class(unsigned int in_id,
14 unsigned int in_stream_class_id,
15 int in_log_level,
16 std::string in_name,
17 nonstd::optional<std::string> in_model_emf_uri,
18 lttng::sessiond::trace::type::cuptr in_payload) :
19 id{ in_id },
20 stream_class_id{ in_stream_class_id },
21 log_level{ in_log_level },
22 name{ std::move(in_name) },
23 model_emf_uri{ std::move(in_model_emf_uri) },
24 payload{ std::move(in_payload) }
25 {
26 }
27
28 void lst::event_class::accept(lst::trace_class_visitor& visitor) const
29 {
30 visitor.visit(*this);
31 }
This page took 0.029572 seconds and 4 git commands to generate.