Fix: sessiond: abort called on undefined client command
[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
10 namespace lst = lttng::sessiond::trace;
11
12 lst::event_class::event_class(unsigned int in_id,
13 unsigned int in_stream_class_id,
14 int in_log_level,
15 std::string in_name,
16 nonstd::optional<std::string> in_model_emf_uri,
17 lttng::sessiond::trace::type::cuptr in_payload) :
18 id{in_id},
19 stream_class_id{in_stream_class_id},
20 log_level{in_log_level},
21 name{std::move(in_name)},
22 model_emf_uri{std::move(in_model_emf_uri)},
23 payload{std::move(in_payload)}
24 {
25 }
26
27 void lst::event_class::accept(lst::trace_class_visitor& visitor) const
28 {
29 visitor.visit(*this);
30 }
This page took 0.029827 seconds and 4 git commands to generate.